When I run ImageMagick to create an animated GIF from a large number of images, it uses resources such that my i7 system becomes unusable. Within seconds of starting, everything freezes and, ultimately, requires a manual reset of the computer (I can't even kill the process in another terminal due to the sluggishess).
How can I prevent ImageMagick from taking up so much of the system resources? I have already tried using export MAGICK_THREAD_LIMIT=1
before running it.
export MAGICK_THREAD_LIMIT=1; sudo nice -n 19 convert -delay 5 -loop 0 -layers optimize "${directoryName1}"/*.jpg output.gif
. It's an interesting idea, but the system still locked up.Would you happen to have any other suggestions? For the purposes of the task at hand, I can't reduce the number of images, but how could I limit ImageMagick in other ways? I don't mind it taking ages to run so long as it doesn't lock up the system.
– d3pd Nov 08 '15 at 07:20-limit memory 64
. I reduced the size of all of the images (such that in total they are collectively only about 60 MB) and I tried the memory limit option, but the system still locked up. Would you have any other ideas? – d3pd Nov 08 '15 at 09:07