[magick-users] Image Magic (convert)
Rebecca York
Rebecca.York at 2ndbyte.com
Fri Sep 28 04:32:43 PDT 2007
Thanks Anthony, that's exactly what I need.
-----Original Message-----
From: Anthony Thyssen [mailto:anthony at griffith.edu.au]
Sent: 2007-09-28 04:09
To: ImageMagick User List
Subject: Re: [magick-users] Image Magic (convert)
Rebecca York on wrote...
| Hiya,
|
| I'm having problems with image magic (convert.exe)
|
| convert.exe c:\foo.jpg -filter Lanczos -resize 640x480! -sharpen 1x0.75
| -blur 1x0.3 -quality 76 -strip -sampling-factor 2x2 -compress JPEG
| c:\foo2.jpg
|
| This works fine on valid jpg images, resizes them nicely;
|
| The problem occurs when the image isn't a valid jpg file, convert.exe
| returns but keeps the process running, and when a certain number of
| convert.exe processes are running (we've counted 100s of them at some
| points) it stops resizing any images at all. (the images are actually on a
| UNC share not c:\)
|
| To get around this I want to put in a script to quickly go through the
| images and automatically discard invalid images - is there any quick way
of
| checking whether a jpg is valid or not?
|
| These are uploaded by clients and they put in loads of junk
|
| Thanks.
Add -regard-warings
See http://www.imagemagick.org/Usage/basics/#controls
That aborts when image is corrupt for Im to follow
and it returns an appropriate exit value. identify can be used with
that option for quick checks.
Anthony Thyssen ( System Programmer ) <A.Thyssen at griffith.edu.au>
----------------------------------------------------------------------------
-
Geordi: Data! What Happened?
Data: Any answer would be mere speculation.
This is another example of how our actions have random results.
--- Star Trek New Generation, ``Contagion''
----------------------------------------------------------------------------
-
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
Magick-users at imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-users
More information about the Magick-users
mailing list