imagemagick
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| imagemagick [2022/02/07 13:29] – external edit 127.0.0.1 | imagemagick [2023/12/31 16:19] (current) – ssm2017 | ||
|---|---|---|---|
| Line 44: | Line 44: | ||
| <sxh bash> | <sxh bash> | ||
| convert *.jpg mypdffile.pdf | convert *.jpg mypdffile.pdf | ||
| + | </ | ||
| + | |||
| + | ==== 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> | {{tag> | ||
imagemagick.1644236959.txt.gz · Last modified: by 127.0.0.1
