ImageMagick resize but not convert my photos

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
poupougnac

ImageMagick resize but not convert my photos

Post by poupougnac »

Hi, I have a strange problem with ImageMagick. Here is my version of GhostScript and ImageMagick (I'm on Ubuntu Server 8.04):

GPL Ghostscript 8.61 (2007-11-21)
Copyright (C) 2007 Artifex Software, Inc. All rights reserved.

Version: ImageMagick 6.5.2-0 2009-05-05 Q16 http://www.imagemagick.org

If I do:
convert pdf.pdf[0] myphoto.jpg
I will have a pdf file with extension .jpg. Without any error or something... But the pdf appears to be modified.
I have tried this on my personnal ubuntu, that work great with the same pdf file.

Here is the pdf:
http://ns359042.ovh.net/pdf.pdf
Here the result after : convert pdf.pdf[0] myphoto.jpg
http://ns359042.ovh.net/myphoto.jpg

I have tried before to install with the source (make). But it has failed, so I stop, could this be the reason?

Thank for your help
poupougnac

Re: ImageMagick resize but not convert my photos

Post by poupougnac »

Maybe I have not post my message in the good section. (If I do please move it)
But I really need some help!

I'm desperate because I have a long job to do with IM and I can't continue.
This probleme is happening on my ubuntu production server.

Maybe it's not a big deal, something to install, delete or modify...
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: ImageMagick resize but not convert my photos

Post by fmw42 »

I am not an expert on these issues, but I tried you example with your pdf file and have to say there is probably something odd about your pdf file. (IM 6.5.2-3 Q16 Mac OSX Tiger)

convert pdf.pdf[0] pdf0.jpg
Unknown device: bmpsep8
Unrecoverable error: undefined in .uninstallpagedevice
Operand stack:
defaultdevice
convert: Postscript delegate failed `pdf.pdf': No such file or directory @ pdf.c/ReadPDFImage/611.
convert: missing an image filename `pdf0.jpg' @ convert.c/ConvertImageCommand/2775.


Whereas this test works fine:

convert rose: rose: rose: rose.pdf
convert rose.pdf[0] rose0.jpg
poupougnac

Re: ImageMagick resize but not convert my photos

Post by poupougnac »

I have fixed my trouble.

I have to uninstall everything about ImageMagick and GhostScript, and delete manually /usr/local/bin/convert,install again and I have to use convert explicitely in /usr/bin/
and make a symbolic link from /usr/bin/convert /usr/local/bin/convert

Thank you
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: ImageMagick resize but not convert my photos

Post by anthony »

fmw42 wrote:I am not an expert on these issues, but I tried you example with your pdf file and have to say there is probably something odd about your pdf file. (IM 6.5.2-3 Q16 Mac OSX Tiger)

convert pdf.pdf[0] pdf0.jpg
Unknown device: bmpsep8
Unrecoverable error: undefined in .uninstallpagedevice
Operand stack:
defaultdevice
convert: Postscript delegate failed `pdf.pdf': No such file or directory @ pdf.c/ReadPDFImage/611.
convert: missing an image filename `pdf0.jpg' @ convert.c/ConvertImageCommand/2775.
Fred bmpsep8 is a ghostscript device. It may be your ghostscript has not been built with the bmp devices. Presumably one of the IM delegates uses the bmpsep8 device.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply