Wednesday, February 18, 2015

How to achieve better compression of an archive of images?


I have folders of images that I would like to archive into back up drives and using winrar or a similar tool I would like to compress the files. They are (mostly - 99%) jpeg files.


In one archive I have 54 files at 114MB, when I use win rar, best compression method and check the "create solid archive" and the "lock archive" boxes I get a final size of 104MB, which is a compression of about 9%.


Is there a way to get even better compression using Winrar or another tool with tweaking setting etc to get a smaller archive?


Or is it the case that that is about the maximum compression I expect from such a task?


Note: I do not want to lose any more quality in the already compressed JPEG images so lossy compression is out of the question.


Answer



Try using a different archive format like .7z. It has been shown to produce marginally better compressed files compared to to other formats.


While using 7z to compress your documents, you can try the following settings to ensure the maximum compression for your documents.


While you did mention that you would not like to lose any quality in the image, the files you are storing (JPEG), are already lossy and compressed.


enter image description here


JPEG file sizes increases exponential with quality. Hence, you may be able to save some space by dropping your image quality slightly, such that no visible artifacts are produced, using a photo editing program and still save a respectable amount of space.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...