CodeKit2 icon indicating copy to clipboard operation
CodeKit2 copied to clipboard

Options for image compression/optimization

Open CodeTheInternet opened this issue 9 years ago • 6 comments

Provide the ability to select different types of image compression, including "lossy" a la TinyPNG.

CodeTheInternet avatar Mar 04 '15 18:03 CodeTheInternet

+1 for this, TinyPNG and TinyJPG compresses the file from 2MB to 325KB where CodeKit could not compress it by anything. I love CodeKit but I find myself still going to TinyPNG/JPG to compress my assets.

KoltonG avatar Jun 01 '15 01:06 KoltonG

I don't necessarily need options, just results.

I've only recently started using Codekit in earnest (it rocks!) but the image compression results are not what I'd hoped for. The resulting files didn't look particularly small, so I just ran a side by side check with a smallish (800 x 600) jpg file. Optimised by codekit -> 583kb. I ran it through JPEGMini lossless compression -> 168kb. Much more in line with what I would expect.

blinkcursor avatar Jun 21 '15 21:06 blinkcursor

Jpegmini is NOT lossless. The way it gets that much compression is by discarding data. This is not a fair comparison. Additionally, the jpegmini guys will not license their algorithm for use in apps. I've asked.

Sent from my iPhone

On Jun 21, 2015, at 16:11, terraling [email protected] wrote:

I don't necessarily need options, just results.

I've only recently started using Codekit in earnest (it rocks!) but the image compression results are not what I'd hoped for. The resulting files didn't look particularly small, so I just ran a side by side check with a smallish (800 x 600) jpg file. Optimised by codekit -> 583kb. I ran it through JPEGMini lossless compression -> 168kb. Much more in line with what I would expect.

— Reply to this email directly or view it on GitHub.

bdkjones avatar Jun 21 '15 21:06 bdkjones

Fair enough. Their website says no loss in quality which is perhaps not the same thing. Shame about the licensing attitude.

Thanks for responding so promptly.

blinkcursor avatar Jun 22 '15 07:06 blinkcursor

Don't know if this is any help, but smashing magazine just published a really in-depth article about batch processing images with open source ImageMagick including a battery of tests to determine what are the optimum settings to use for best results. They are not lossless but judged by testing to be near indistinguishable.

http://www.smashingmagazine.com/2015/06/25/efficient-image-resizing-with-imagemagick/

blinkcursor avatar Jun 25 '15 14:06 blinkcursor

Actually, this is a lot of help. Thanks!

bdkjones avatar Jul 10 '15 17:07 bdkjones