Page 1 of 1

possible bug converting pdf to jpeg

Posted: 2017-05-15T02:11:12-07:00
by marclazell
I am using the following to convert a PDF to JPEG file:

convert -density 400 test.pdf -scale 2000x1000 hi-res%d.jpeg

However, my creating jpeg file is corrupted, with the following message:

Error interpreting JPEG image (Not a JPEG file: starts with 0x25 0x50)

I have gs version 9.18 installed,

Image magick version:
Version: ImageMagick 7.0.5-6 Q16 x86_64 2017-05-15 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP
Delegates (built-in): zlib

Ubuntu Version:
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial

Thanks
Marc!

Re: possible bug converting pdf to jpeg

Posted: 2017-05-15T04:50:06-07:00
by snibgo
With v7, the usual command is "magick", not "convert".

Does saving to a different format (eg PNG) work? Does reading from a different input (eg PNG) work?

Did you build IM yourself? If so, what version of the jpeg library did you use?