Page 1 of 1

mogrify: unable to open image

Posted: 2012-12-04T12:34:50-07:00
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 ?!?

Re: mogrify: unable to open image

Posted: 2012-12-04T17:45:05-07:00
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.

Re: mogrify: unable to open image

Posted: 2012-12-04T23:53:44-07:00
by dargaud
Sorry, it was a stupid permission problem. And yes, --verbose works with mogrify.