Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My raspberry Pi keeps killing imagemagick's convert command when I'm resizing images, especially larger images.

Is there any way I can prevent this?

share|improve this question
Have you checked the output of dmesg? You almost certainly don't have enough RAM and the OOM killer aborts the convert process. – scai Dec 18 '12 at 14:33
yes it most certainly is an Out of Memory kill, but what can be done to mend this? Getting more memory isn't an option. Yet I refuse to believe that some jobs would be totally impossible just because of low memory. – romeovs Dec 18 '12 at 14:38
You can create a swap partition (or a swap file) or increase the size of it if you already have one. But this will slow down the conversation significantly as well as other running applications. – scai Dec 18 '12 at 14:53

Try using ImageMagick's resource limiting settings: convert -limit memory 1G ... This will limit memory usage to 1G when running.

To see what the current resources available, run: convert -list resource

share|improve this answer

I just tried out a library named epeg, which is based on libjpeg. It's proving to be very fast. If you're just doing simple resizes, and not using imagemagick many other features, you should consider epeg.

I posted various test results here:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.