mogrify: 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
dargaud
Posts: 31
Joined: 2006-08-06T01:58:58-07:00

mogrify: unable to open image

Post by dargaud »

Hello all,
I have IM running in various scripts on my Ubuntu machine and no problem. But I just tried a batch monochrome convertion and it failed:

Code: Select all

$ mogrify -verbose -monochrome 20121130-123349-00.jpg 
20121130-123349-00.jpg JPEG 640x480 640x480+0+0 8-bit DirectClass 30.2KB 0.020u 0:00.019
20121130-123349-00.jpg JPEG 640x480 640x480+0+0 8-bit Bilevel PseudoClass 1c 30.2KB 0.340u 0:00.289
mogrify: unable to open image `20121130-123349-00.jpg':  @ error/blob.c/OpenBlob/2587.
Here's an image: http://www.gdargaud.net/BugFest/20121130-123345-00.jpg
Is it a problem with my install (default Ubuntu) or with my syntax which I swear worked in the past ?!?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: mogrify: unable to open image

Post by fmw42 »

It works fine for me on IM 6.8.0.7 Q16 Mac OSX Snow Leopard if you do not add -verbose.

Both the following work fine for me:

mogrify -path /Users/fred/1tmp2 -format jpg -monochrome *.jpg

mogrify -path /Users/fred/1tmp2 -format jpg -monochrome 20121130-123345-00.jpg

Though usually if you have one specific image to convert, one would use convert.

If I add -verbose, then I get an error:

mogrify: no decode delegate for this image format `/Users/fred/1tmp2' @ error/constitute.c/ReadImage/550.


I am not sure -verbose works with mogrify.
dargaud
Posts: 31
Joined: 2006-08-06T01:58:58-07:00

Re: mogrify: unable to open image

Post by dargaud »

Sorry, it was a stupid permission problem. And yes, --verbose works with mogrify.
Post Reply