mogrify crash under XP

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
cromagnon

mogrify crash under XP

Post by cromagnon »

Hi - I'm trying to resize a bunch (361 jpegs each at 2592 x 1944 and between 300 and 800kb) of images in a folder on my XP machine. The files are in C:\folder1, and I want to resize them in place to 1024x768, overwriting the originals. I'm issuing the command

mogrify -resize x768 *.jpg

and am instantly getting the standard Windows fatal error dialog for error reporting that begins "ImageMagick Studio library and utility programs has encountered a problem and needs to close. We are sorry for the inconvenience."

I've tried mogrify -debug all -resize x768 *.jpg

but receive no log of debug output anywhere. Any advice?

Thanks!


PS - versions are:

Version: ImageMagick 6.4.8 2008-12-27 Q8 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC

Microsoft Windows XP [Version 5.1.2600] (that's XP Pro with SP3)
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: mogrify crash under XP

Post by Bonzo »

Works OK for me with Command prompt and a couple of images - XP SP2 Version 6.4.0

I assume you
CD\
CD folder1
cromagnon

Re: mogrify crash under XP

Post by cromagnon »

Thanks - yes, I was running the command having cd'd into the correct folder: even if it hadn't I would expect a file not found error rather than a crash. Is there an archive of Windows binaries for IM anywhere? I can find the legacy source code releases on sourceforge, but can't compile on this machine...
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: mogrify crash under XP

Post by magick »

We tried your command with the latest ImageMagick release, 6.4.8-3, available as http://www.imagemagick.org/download/bin ... ws-dll.exe under Windows XP and the command completed without complaint. Not sure why its failing for you.
cromagnon

Re: mogrify crash under XP

Post by cromagnon »

Excellent - thanks. At least I know the problem is with my computer now. Could you tell me:

a) is there an archive of Windows binaries for legacy releases?
b) where should I find the debug output for mogrify -debug all -resize x768 *.jpg? On the screen or in a default file somewhere?
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: mogrify crash under XP

Post by el_supremo »

a) is there an archive of Windows binaries for legacy releases?
Not an official site but this has a lot of legacy versions:
http://image_magick.veidrodis.com/image_magick/binaries/
b) where should I find the debug output for mogrify -debug all -resize x768 *.jpg? On the screen or in a default file somewhere?
It looks like it crashed immediately so there won't be any debugging output.
I suspect that your command line is too long because the *.jpg will be expanded into well over 4000 characters.

Try quoting the output filename like this:

Code: Select all

mogrify -resize x768 "*.jpg"
This lets mogrify expand the wildcard internally so that the command line limit won't be exceeded.

Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
cromagnon

Re: mogrify crash under XP

Post by cromagnon »

Pete - thank you! I have no problems running your modified command with the quoted wildcard in anything other than the latest version. You've saved me an enormous amount of time!

PS: Should I pass this over to the bug forum?
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: mogrify crash under XP

Post by el_supremo »

If the command behaves correctly in any version except the most current one then you should post it to the bugs forum along with whatever error message(s) you get.

Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
Post Reply