Page 1 of 1
Problem with mogrify
Posted: 2011-12-31T23:18:39-07:00
by imgmgckeshwar
mogrify -resize 800 *.jpg gives me this error
mogrify: unable to open image `*.jpg': @ error/blob.c/OpenBlob/2498
I am using 7:6.6.2.6-1ubuntu4 (imagemagick) on Natty (Ubuntu 11.04)
Thanks for your help
Re: Problem with mogrify
Posted: 2011-12-31T23:47:09-07:00
by fmw42
What version of IM are you using (is it 6.6.2.6)?
type:
convert -version
Do you have jpg files in your current directory?
Do you have libjpeg installed?
type:
convert -list configure
look at the line starting with DELEGATES and see if it includes jpeg.
or type:
convert -list format
see if it shows JPEG as rw
such as
JPEG* JPEG rw- Joint Photographic Experts Group JFIF format (80)
JPG* JPEG rw- Joint Photographic Experts Group JFIF format (80)
Re: Problem with mogrify
Posted: 2012-01-01T06:06:13-07:00
by imgmgckeshwar
fmw42 wrote:What version of IM are you using (is it 6.6.2.6)?
type:
convert -version
Do you have jpg files in your current directory?
Do you have libjpeg installed?
type:
convert -list configure
look at the line starting with DELEGATES and see if it includes jpeg.
or type:
convert -list format
see if it shows JPEG as rw
such as
JPEG* JPEG rw- Joint Photographic Experts Group JFIF format (80)
JPG* JPEG rw- Joint Photographic Experts Group JFIF format (80)
I am using 6.6.2.6
Yes, I do have the jpeg files in the current directory
libjpeg seems to be installed
DELEGATES bzlib djvu fontconfig freetype gvc jpeg jng jp2 lcms lqr openexr png rsvg tiff x11 xml wmf zlib
JPEG* JPEG rw- Joint Photographic Experts Group JFIF format (62)
JPG* JPEG rw- Joint Photographic Experts Group JFIF format (62)
Re: Problem with mogrify
Posted: 2012-01-01T12:00:54-07:00
by fmw42
try adding -format jpg
Otherwise, I am at a loss then. You will have to wait for the IM developers to respond.
In the mean-time you could try to upgrade IM if possible as your version is nearly 100 versions old.
Re: Problem with mogrify
Posted: 2012-01-04T19:40:55-07:00
by anthony
The fact that mogrify responded with "*.jpg" in the error means IM was actually given a "*.jpg" as an argument!
The shell will only do that if it did not find any files ending in jpg (and was not quoted) and IM likewise did not find those files.
Remember BOTH shell and Imagemagick will try to expand '*' meta characters. IM does this for DOS users as the DOS shell does not do '*' filename expansion but leaves that up to the programs.
Most likely cause is you are doing this on a filesystem that is case-insensitive such as a USB stick, and you files end in "JPG" instead of "jpg"