Page 1 of 1

convert: unable to open image

Posted: 2012-02-23T05:58:06-07:00
by mullenkamp
I can't even seem to get the most basic of functions to work in Imagemagick...

Simply trying to convert from one format to another in Imagemagick with the code:

convert test1.jpg test1.tiff

gives the error:

convert: unable to open image `test1.jpg': @ error/blob.c/OpenBlob/2498.
convert: missing an image filename `test1.tiff' @ error/convert.c/ConvertImageCommand/2970.

I've even changed the permissions of the file, but it has no effect. I am in the correct directory by the way...

Does anyone have any ideas?

I'm running Ubuntu 11.04

Thanks.

Re: convert: unable to open image

Posted: 2012-02-23T10:44:43-07:00
by fmw42
You may not have installed the appropriate delegate libraries, libjpeg and libtiff, before installing IM (if from source).

You can check your delegate libraries by typing

convert -list configure

and look at the line starting with DELEGATES. Make sure it lists jpg and tiff.

Re: convert: unable to open image

Posted: 2012-02-23T19:28:04-07:00
by anthony
Unable to open blob, would more likely mean the file was not readable at all.

Either it does not exists where IM thinks it should be (wrong directory), or it has the wrong persissions.

Did you do this from a web server?