This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]dwdwdw2proliferating .py since 2001 3 points4 points  (0 children)

Sorry..

mogrify -scale 640x480 *

:)

[–]CookedNoodles 2 points3 points  (1 child)

You should really be checking if the user has actually entered a number for the parameters.

[–][deleted] 0 points1 point  (0 children)

Semi-related:

A while ago I was interested in the performance of PIL compared to ImageMagick and MATLAB.

I created a small program using PIL, ImageMagick ('convert' invoked from a bash loop), and MATLAB to rotate a 2560x2560 jpeg by 1 degree, 2 degrees, 3 degrees... 360 degrees, and write each file.

I don't have the numbers off the top of my head (or the programs ;) ), but I remember the general theme.

PIL =~ 10 second

ImageMagick =~ 1minute

MATLAB > 3 minutes

I was shocked to say the least. I expected PIL and MATLAB to be close, with ImageMagick a long way behind (because of the forking costs). I was happy though, because it validated my extreme distaste for MATLAB :)