Memory Usage With convert -resize problem

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
kokwah

Memory Usage With convert -resize problem

Post 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....
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Memory Usage With convert -resize problem

Post 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...'.
Post Reply