frostworx / repo-assets

repo assets f.e. for README.md
GNU General Public License v2.0
1 stars 1 forks source link

Compressed images #1

Closed Faalagorn closed 2 years ago

Faalagorn commented 3 years ago

Since I can't replace GitHub images from the GUI, I'd have to fork the repo locally to upload new version of images, but here's the two compressed PNG files in case you want it, I used this zopflipng fork from MrKrzYch00 with these options: --iterations=1000000 --mui=10000 --all --lossy_transparent --lossy_8bit --alpha_cleaners=bhvapw.

For 64 pixel logo it's: Input size: 863 (0K) Result size: 852 (0K). Percentage of original: 98.725% steamtinkerlaunch-logo_64px For 256 pixel logo it's: Input size: 3562 (3K) Result size: 3358 (3K). Percentage of original: 94.273% steamtinkerlaunch-logo_256px

Feel free to replace them for a little faster loading times/less disk space being used. :)

These options are over the top and some speed saving and possibly some lower sizes could probably be used by more clever filters/options being used and I didn't touch the JPGs and GIFs in here but these can be compressed (losslessly) as well. Alternatively, some newer formats could be used for more savings, such as webp.

frostworx commented 3 years ago

Thanks for the suggestion. The pngs are not used in stl itself though. The base64 encoded string for the scaled down 64pixel picture in genDefIcon becomes bigger than the current one. Might be worth a try to scale down the jpegs with guetzli, but as you do not load all the pictures at once when reading the wiki and it might also lead to compatibility problems I do not plan to do it for now.

Pokefinder-org commented 2 years ago

Sorry to hijack this

frostworx commented 2 years ago

Hi @Pokefinder-org totally forgot your message here until I now but I just received an email because of your comment here I'm afraid though I can't help you any further, as I haven't touched the ydkjs project since my last comment above yours :)

No idea if this is interesting for you, but there are several hacks/mods, which allow you to play the classic German YDKJ 1-4 on modern systems (f.e. they work excellent on my linux system, where I start them instead of the english versions by overriding the game exe). If you're interested, I try to find the source thread (on steam)