rotation of large image file
Posted: 2008-08-15T15:12:04-07:00
Hi folks
So I've been trying to batch process a number of geographic image files. They need to be rotated at unique angles. Since they are map files, they are very high res. I'm getting an error where if I do:
convert ./myImage.png +distort SRT -40 +repage ./myImage-rotated.png
My final image does not actually rotate, instead it comes back with the canvas resized (to the correct size if it were rotated) with the original image at the top and a lot of black in the bottom half. The image is 14997x5592 pixels, and this command works for all other images, so I suspect it's a memory issue and IM is just crashing without a message.
Note, if I do:
convert ./myImage.png -rotate '-40>' ./myImage-rotated.png
It runs for about 3 min. then I get this error:
convert: Memory allocation failed 'Cannot allocate memory'.
I am using ImageMagick 6.4.0 04/17/08 Q16 (32-bit, although I am running XP x64)
So it seems like a memory allocation constraint. I have 4G on my machine and the convert process is using 664,000KB which I assume is the limit?
Any advice?
So I've been trying to batch process a number of geographic image files. They need to be rotated at unique angles. Since they are map files, they are very high res. I'm getting an error where if I do:
convert ./myImage.png +distort SRT -40 +repage ./myImage-rotated.png
My final image does not actually rotate, instead it comes back with the canvas resized (to the correct size if it were rotated) with the original image at the top and a lot of black in the bottom half. The image is 14997x5592 pixels, and this command works for all other images, so I suspect it's a memory issue and IM is just crashing without a message.
Note, if I do:
convert ./myImage.png -rotate '-40>' ./myImage-rotated.png
It runs for about 3 min. then I get this error:
convert: Memory allocation failed 'Cannot allocate memory'.
I am using ImageMagick 6.4.0 04/17/08 Q16 (32-bit, although I am running XP x64)
So it seems like a memory allocation constraint. I have 4G on my machine and the convert process is using 664,000KB which I assume is the limit?
Any advice?