You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the last time I did this, several new images have been added, so I thought it would be a good idea to run image compression across all the repos again.
This time i opted to use SVGO and Oxipng for lossless compression instead of the other web tools i used before. I compared the old tools vs these, the new ones provided a better result.
Also you might want to share the commands you used so we can see if there are further optimizations
Isnt really the goal of this PR. I knew there were new icons added that didnt receive an optimization so optimized the whole directory like i always did. The minor improvements of the already optimized icons are just a nice bonus.
Anyway here are the commands for lossless compression:
When I run pnpm dlx svgo -r -f . -o . on home folder (without -r won't work) I got 3 additional SVG files optimized
When I run oxipng -o 6 --strip safe --recursive ./_icons ./src I got additional 3 PNG files optimized
(Folder paths passed to avoid nodule_modules, found by find . -path ./node_modules -prune -o -iname '*.png', and there is no exclude option: oxipng/oxipng#721
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Type
Description
Since the last time I did this, several new images have been added, so I thought it would be a good idea to run image compression across all the repos again.
This time i opted to use SVGO and Oxipng for lossless compression instead of the other web tools i used before. I compared the old tools vs these, the new ones provided a better result.
Screenshots
before left, after right

Testing
Check if image quality is the same as before
Additional context
Ill also go ahead and create a PR to remove https://github.com/FreeTubeApp/FreeTube/blob/development/.github/workflows/calibreapp-image-actions.yml as we wont be needing that anymore because this tool has become buggy and doesnt provide good results anymore