I have a 3 page PDF file.
Run this command
Code: Select all
convert -density 350 -resize 600 myfile.pdf myfile.png
I wonder how do I:
1 - add width and height into filename
I tried
Code: Select all
convert -density 350 -resize 600 -set filename:area '%wx%h' myfile.pdf myfile-%[filename:area].png
myfile-600x288-0.png
myfile-600x288-1.png
myfile-600x288-2.png
2 - create multiple sets of images with different size
I tried
Code: Select all
convert myfile.pdf -density 350 \
\( +clone -resize 300 -write myfile-small.png +delete \) \
-resize 600 myfile.png
myfile-0.png
myfile-1.png
myfile-2.png
myfile-thumb.png
Is it possible to produce
myfile-0.png
myfile-1.png
myfile-2.png
myfile-thumb-0.png
myfile-thumb-1.png
myfile-thumb-2.png