imagemagick
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| imagemagick [2021/05/11 13:51] – ssm2017 | 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.1620733875.txt.gz · Last modified: (external edit)
