problem with convert -resize : doesn't work beyond 3 images
Posted: 2008-05-21T03:23:47-07:00
Hi everyBody !
I'm web developper and I'm working on a project for my company using imagemagick (version 6.3.5).
We need to make several resize at the same time, with high image dimension.
So I made some test with an image of 5500*12000 pixels, and I resized it in 600x600 using this command :
convert img.jpg -resize 600x600 imgResized.jpg
I get the following result :
- 1 image : take 9 seconds
- 2 images at the same time : 11s
- 3 images : 17s
- 4 images : doesn't work (no error message, I can wait several minutes nothing happened)
When I tried with 4 images at the same time, I can see with the top command that the CPU and the memory used increase but maybe during 5seconds, after it makes like the tasks was finished, memory and CPU become normally.
So I tried using limit option like this :
convert img.jpg -limit memory 64000000 -limit map -128000000 -resize 600x600 imgResized.jpg
but I got a similar result. It just take more time with 1,2 or 3 images and with 4 images it doesn't work.
Could anyone tell me how to resolve this problem ?
Why it doesn't work beyond 3 images ?
Concerning the server config, we have 2Gb for memory, processor intel core 2 duo E4500 @2.20Ghz.
Thanks for your help
I'm web developper and I'm working on a project for my company using imagemagick (version 6.3.5).
We need to make several resize at the same time, with high image dimension.
So I made some test with an image of 5500*12000 pixels, and I resized it in 600x600 using this command :
convert img.jpg -resize 600x600 imgResized.jpg
I get the following result :
- 1 image : take 9 seconds
- 2 images at the same time : 11s
- 3 images : 17s
- 4 images : doesn't work (no error message, I can wait several minutes nothing happened)
When I tried with 4 images at the same time, I can see with the top command that the CPU and the memory used increase but maybe during 5seconds, after it makes like the tasks was finished, memory and CPU become normally.
So I tried using limit option like this :
convert img.jpg -limit memory 64000000 -limit map -128000000 -resize 600x600 imgResized.jpg
but I got a similar result. It just take more time with 1,2 or 3 images and with 4 images it doesn't work.
Could anyone tell me how to resolve this problem ?
Why it doesn't work beyond 3 images ?
Concerning the server config, we have 2Gb for memory, processor intel core 2 duo E4500 @2.20Ghz.
Thanks for your help