Opened 4 years ago
Last modified 4 years ago
#18849 new enhancement
Further image optimisation possible in Java bundle
Reported by: | Stereo | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | Cc: |
Description
I decompressed https://josm.openstreetmap.de/josm-tested.jar and ran the folder through https://imageoptim.com/mac on my mac.
ImageOptim saved 80 KB out of 2.7 MB of images. That's 3% overall, and up to 87.8% per file.
I guess someone with commit rights and a mac could just run that tool on the whole tree every once in a while?
Attachments (0)
Change History (6)
comment:1 by , 4 years ago
comment:2 by , 4 years ago
Most weren't optimised, although returns varied widely. Imageoptim tries a combination of several tools, including optipng, and also optimises SVGs. It's an excellent tool, and I'm surprised there's still no equivalent for other OSs.
In the case of PNGs, the most common tool that optimised things further was zopfli, but it varied.
comment:3 by , 4 years ago
I checked the file with optipng and all files have been stated as "is already optimized". Same for SVG which was run through svg cleaner.
I now added zopflipng in the optimizer chain. Please test tomorrow if it had the desired effect.
follow-ups: 5 6 comment:4 by , 4 years ago
There will still be some room for improvement: zopfli wasn't always the best tool, and sometimes a combination of the tools was. Sometimes, a particular combination will produce a bigger output file than only one of the tools, etc.
Don-vip has a mac and could run this on the whole source tree. Or if you want, I can do it with temporary commit rights?
comment:5 by , 4 years ago
Replying to Stereo:
There will still be some room for improvement: zopfli wasn't always the best tool, and sometimes a combination of the tools was. Sometimes, a particular combination will produce a bigger output file than only one of the tools, etc.
Don-vip has a mac and could run this on the whole source tree. Or if you want, I can do it with temporary commit rights?
What's not possible in the nightly run with linux tools will not be done. The icons in SVN stay as they are.
Nightly now does optipng and zopflipng both.
comment:6 by , 4 years ago
Replying to Stereo:
Don-vip has a mac and could run this on the whole source tree.
I thank you for this A LOT but it's only for tests, I can't use proprietary tools as a prerequisite to build/maintain JOSM.
Released images are optimized with optipng and svgcleaner during the build process. Which images weren't optimized?