Opened 3 years ago
Last modified 3 years ago
#21624 new enhancement
Optimise images on github Windows builds
Reported by: | Stereo | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Installer Windows | Version: | tested |
Keywords: | Cc: |
Description
What steps will reproduce the problem?
- Download a tested windows build from https://github.com/JOSM/josm/releases/tag/18303-tested
- Extract the images from wherever it stores the jar
- Look at image sizes
What is the expected result?
Images are already optimised
What happens instead?
The image optimisation only gets run on the macOS runner because it uses the imageoptim macOS app.
Images should be optimised in the svn tree. This would provide optimised images for every build, let us try a variety of slow and efficient PNG tools that aren't in imageoptim like pngwolf-zopfli, and speed up build times.
Attachments (0)
Change History (4)
follow-up: 2 comment:1 by , 3 years ago
follow-up: 3 comment:2 by , 3 years ago
Replying to taylor.smock:
Can we move the potlatch2 onto JOSM wiki?
See #18866. Thats already available. The built in Potlatch2 mapcss style and its icons can be removed, but this requires also some code to remove the style from the users list of active styles. Else they will end up with an error afaik.
comment:3 by , 3 years ago
Replying to Klumbumbus:
Replying to taylor.smock:
Can we move the potlatch2 onto JOSM wiki?
See #18866. Thats already available. The built in Potlatch2 mapcss style and its icons can be removed, but this requires also some code to remove the style from the users list of active styles. Else they will end up with an error afaik.
I had to write some code for the JOSM MapWithAI plugin to handle cases like this.
But it is (currently) very specialized for the MapWithAI plugin. I'll see if I can write something more generic sometime.
For the record, here are current png files in a jar:
The one I spotchecked was used in source:trunk/resources/styles/standard/potlatch2.mapcss
Stupid question: Can we move the potlatch2 onto JOSM wiki? Or is there another reason to keep it around in tree (tests?)?
Advantage: A new release of JOSM isn't required to update the icons/style sheet
Cons: Not built in anymore
This would save ~500K unzipped and ~84K zipped.