News for hackers. Stuff that matters.
Re:Image optimization decreased website's page weight by 62% by Cenk on Monday July 16, 2018 @08:57AM (#17540918)
If you’re developing on a Mac, ImageOptim can handle all of the image compression (JPG, PNG, etc): https://imageoptim.com/mac

For SVGs, svgo (brew install svgo) usually produces the best results for me.

Re:Image optimization decreased website's page weight by 62% by superrad on Monday July 16, 2018 @09:06AM (#17540966)
I'd second ImageOptim on Mac or PNGGauntlet on Windows https://pnggauntlet.com . I'd be careful using pngquant as well, as it will only ever give you 256 or less colour image or your original image back. PNGGauntlet and ImageOptim will optimise your PNGs losslessly.
Re:Image optimization decreased website's page weight by 62% by chrismorgan on Monday July 16, 2018 @09:02AM (#17540943)
I tend to use SVGO’s Missing GUI: https://jakearchibald.github.io/svgomg/. (Great demonstration of service workers for offline support, too.)
Re:Image optimization decreased website's page weight by 62% by kilian on Monday July 16, 2018 @10:06AM (#17541312)
For Linux users I made https://trimage.org
Re:Image optimization decreased website's page weight by 62% by mabynogy on Monday July 16, 2018 @01:56PM (#17543391)
Thanks, I'll try it.
Re:Image optimization decreased website's page weight by 62% by alexkadis on Monday July 16, 2018 @09:33AM (#17541126)
On Windows, I only need to optimize images occasionally and tend to use the free version of https://kraken.io There are probably better solutions, but this is very easy and no install needed.

On Mac, you're definitely right that ImageOptim is the best.

Re:Image optimization decreased website's page weight by 62% by edko on Monday July 16, 2018 @12:42PM (#17542672)
What would you recommend for an iOS app written in Swift that has to optimize images drag-and-dropped on it by the user?
Re:Image optimization decreased website's page weight by 62% by reaperducer on Monday July 16, 2018 @02:33PM (#17543737)
Because it suits their workflow?

Because it adheres to the company's IT policies?

Because they like to review results instead of relying on some black box automation?

Because they like to work in-house and not on someone else's cloud?

Just off the top of my head. I'm sure there are a thousand other reasons.

Re:Image optimization decreased website's page weight by 62% by bwbw223 on Monday July 16, 2018 @09:09AM (#17540986)
svgcleaner is supposed to be faster and have a better compression ratio than svgo: https://github.com/RazrFalcon/svgcleaner

It also has a GUI.

Re:Image optimization decreased website's page weight by 62% by chrismorgan on Monday July 16, 2018 @09:38AM (#17541162)
svgcleaner looks not to support any lossy compression at this stage. Granted, svgo’s lossy compression is very pathetic, but for many images it will have enormous impact. (I say very pathetic, because it’s pretty much just rounding of numbers to N decimal places—no awareness of perception or how different scales may mean that one decimal place means radically different things in different parts of the image, no path simplifications using Visvalingam-Whyatt or similar, &c.)

Being focused on theoretically lossless compression techniques, svgcleaner’s GUI doesn’t look to include rendering of the SVG, and focuses on batch operation. For svgo there is Jake Archibald’s SVGOMG which renders the SVG and so lets you see what the impact of the lossy compression employed.

Re:Image optimization decreased website's page weight by 62% by 1996 on Monday July 16, 2018 @01:16PM (#17542977)
After fighting with the options, failing to find a good default, and still consistently getting larger images, I fail to see how svgcleaner is better.
Re:Image optimization decreased website's page weight by 62% by bwbw223 on Monday July 16, 2018 @03:02PM (#17543981)
I think it's only with lossless compression that it's better.
Re:Image optimization decreased website's page weight by 62% by superhuzza on Monday July 16, 2018 @09:21AM (#17541047)
svgo has a gui online called SVGOMG.