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!
possible bug converting pdf to jpeg
-
- Posts: 1
- Joined: 2017-05-15T02:05:01-07:00
- Authentication code: 1151
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: possible bug converting pdf to jpeg
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?
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