possible bug converting pdf to jpeg

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
marclazell
Posts: 1
Joined: 2017-05-15T02:05:01-07:00
Authentication code: 1151

possible bug converting pdf to jpeg

Post 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!
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: possible bug converting pdf to jpeg

Post 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?
snibgo's IM pages: im.snibgo.com
Post Reply