Help needed reducing file size of large image
Posted: 2013-11-26T01:36:15-07:00
Hi! A friend of mine is having problems using ImageMagick 6.7.9-2 on a Windows 7 Home Premium edition (64-bit) system with 8GB of RAM and 2TB of internal hard drive space. The image she's working with is 16"x24" in dimension at 280 DPI. The JPEG file is about 45MB on disk. She needs to get that file down to 10MB or so, without losing image quality (if that's at all possible).
So, I asked her to run this command:
and convert terminates with the following message:
I did some research and found the "-limit" option and the "-list resource" option. I had her run:
and it reported the following resource information:
File: 1536
Area: 29.452GB
Memory: 13.715GiB
Map: 27.429GiB
Disk: unlimited
Thread: 4
Time: unlimited
Of course, the above output was formatted appropriately in the command output.
So, I asked her to run this command:
with ALL of her other applications terminated (no browser windows, no PhotoShop, etc), to see what happens. At some point, I'll have her upgrade to a newer version of ImageMagick but I wanted to start this thread to see if the latest version wouldn't have the memory issues version 6.7.9-2 is having or would the version of ImageMagick not matter since the image is just plain too large?
Thanks in advance!
Peace...
So, I asked her to run this command:
Code: Select all
convert -strip -quality 90 big-image.jpg new-image.jpg
Code: Select all
convert.exe: Insufficient memory (case 4) 'big-image.jpg' @ error/jpeg.c/JPEGErrorHandler/316.
Code: Select all
convert -list resource
File: 1536
Area: 29.452GB
Memory: 13.715GiB
Map: 27.429GiB
Disk: unlimited
Thread: 4
Time: unlimited
Of course, the above output was formatted appropriately in the command output.
So, I asked her to run this command:
Code: Select all
convert -strip -quality 90 -limit 1024MiB big-image.jpg new-image.jpg
Thanks in advance!
Peace...