Problem with mogrify

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
imgmgckeshwar
Posts: 2
Joined: 2011-12-31T23:09:59-07:00
Authentication code: 8675308

Problem with mogrify

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

Re: Problem with mogrify

Post 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)
imgmgckeshwar
Posts: 2
Joined: 2011-12-31T23:09:59-07:00
Authentication code: 8675308

Re: Problem with mogrify

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

Re: Problem with mogrify

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

Re: Problem with mogrify

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