Page 1 of 1

ImageMagick resize but not convert my photos

Posted: 2009-05-08T03:55:13-07:00
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

Re: ImageMagick resize but not convert my photos

Posted: 2009-05-09T03:20:01-07:00
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...

Re: ImageMagick resize but not convert my photos

Posted: 2009-05-09T09:36:46-07:00
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

Re: ImageMagick resize but not convert my photos

Posted: 2009-05-10T08:20:52-07:00
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

Re: ImageMagick resize but not convert my photos

Posted: 2009-05-11T22:12:39-07:00
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.