convert: unable to open image

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
mullenkamp
Posts: 1
Joined: 2012-02-23T05:50:05-07:00
Authentication code: 8675308

convert: unable to open image

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert: unable to open image

Post 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.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: convert: unable to open image

Post 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?
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply