Modify

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 stoecker, 4 years ago

Released images are optimized with optipng and svgcleaner during the build process. Which images weren't optimized?

comment:2 by Stereo, 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 stoecker, 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.

comment:4 by Stereo, 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?

in reply to:  4 comment:5 by stoecker, 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.

in reply to:  4 comment:6 by Don-vip, 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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to Stereo.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.