Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
I have a PDF-to-multiple-JPG output set up on my website, and I have been able to convert PDFs to multiple JPGs just fine up until now--when I've moved to using searchable image PDF setups. The way these PDFs are set up are very straightforward--one JPG image per page and the searchable text markup. I'd ideally keep the searchable text intact when running these PDFs through ImageMagick; is there any way I can just have the converter ignore the text inside and just make JPGs?
Edit: the exact error message I receive when trying to do this is
Error creating thumbnail: convert: no decode delegate for this image format `' @ error/constitute.c/ReadImage/504. convert: no images defined `/tmp/transform_2dc9f6e73735.jpg' @ error/convert.c/ConvertImageCommand/3258.
Error creating thumbnail: I/O Error: Couldn't open image file 'pdf-001-000.jpg' convert: no decode delegate for this image format `' @ error/constitute.c/ReadImage/504. convert: no images defined `/tmp/transform_17fcb2522cee.jpg' @ error/convert.c/ConvertImageCommand/3258.
I do not think pdfimages has a stdout to pipe to convert (as snibgo said). So try separating the pdfimages command from the convert command. Save the result from the pdf images will be automatically created. Also as snibgo said, better to read the input right after convert as proper IM syntax.
pdfimages always includes the image number within the filename. With option "-p", it also includes the page number. (A pdf file may contain pages with more than one image, and pages with no images.)
snibgo wrote: ↑2018-04-07T19:24:17-07:00
pdfimages always includes the image number within the filename. With option "-p", it also includes the page number. (A pdf file may contain pages with more than one image, and pages with no images.)
Thanks for the clarification. I misunderstood the meaning of -000.
The lack of a pipe leaves me in a bind--I'm actually using this along with Mediawiki to convert PDFs to JPG (thus the earlier gs use.) Are there any other options besides gs and pdfimages for this task? I'm assuming ImageMagick can't do this natively.