imagemagick
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| imagemagick [2021/03/27 12:43] – created ssm2017 | imagemagick [2023/12/31 16:19] (current) – ssm2017 | ||
|---|---|---|---|
| Line 46: | Line 46: | ||
| </ | </ | ||
| + | ==== pdf to images ==== | ||
| + | <sxh bash> | ||
| + | #!/bin/bash | ||
| + | |||
| + | # Script to convert PDF file to JPG images | ||
| + | # | ||
| + | # Dependencies: | ||
| + | # * pdftk | ||
| + | # * imagemagick | ||
| + | |||
| + | PDF=$1 | ||
| + | |||
| + | echo " | ||
| + | DIR=`basename " | ||
| + | |||
| + | mkdir " | ||
| + | |||
| + | echo ' | ||
| + | pdftk " | ||
| + | pdftk " | ||
| + | |||
| + | echo ' | ||
| + | for i in " | ||
| + | convert -colorspace RGB -interlace none -density 300x300 -quality 100 " | ||
| + | done | ||
| + | |||
| + | echo 'All done' | ||
| + | </ | ||
| + | |||
| + | {{tag> | ||
imagemagick.1616845397.txt.gz · Last modified: (external edit)
