Page 1 of 1

Memory Usage With convert -resize problem

Posted: 2009-11-04T19:55:03-07:00
by kokwah
Hi everyone,


I found that the cpu usage in the server up to 100% for everytimes my programs doing the resizing of images(about 100 files).

my command is below:

convert -resize 1000x1100 -colors 256 C:\input.png c:\output.png


The convert.exe will takes alot of memories and the cpu usage will up to 100%.I have tried to find some solution from here.but still couldnt find it..

I have try to use this command also:

convert -limit memory 16 -limit map 16 -resize 1000x1100 C:\input.png C:\out.png

but it still made the cpu usage up 100%..and it is really bring down the performance of the server..

Have you guys experienced any similar issues?

Your assistance towards this matter is highly appreciated.

Thanks....

Re: Memory Usage With convert -resize problem

Posted: 2009-11-05T06:12:29-07:00
by magick
Setting the memory limit trades memory usage for disk I/O usage. To reduce demand on your computer you can change the CPU scheduling priority of the convert program. Under Linux we use 'nice convert...'.