Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compress image assets to reduce bundle size #125

Merged
merged 1 commit into from
May 22, 2017

Conversation

levibuzolic
Copy link
Contributor

File Original New
art-default.jpg 807K 120K
icon-default.png 209K 29K
icon-folder.png 216K 27K
icon-list.png 195K 25K
icon-next.png 226K 31K
icon-prefs.png 206K 31K
icon-reload.png 210K 31K
icon-search.png 213K 31K
icon-tv.png 213K 26K
Total 2495K 351K

Obviously with this level of compression there is some quality loss, however I've compressed the images at a level which I don't think is likely to be perceptible on most TVs by most users. But if you look closely enough you'll see a some JPG artefacts in art-default.jpg and some dithering in the png files.

Is the icons.pdn actually in use? I couldn't see any references in the code to it, but wasn't sure if it's a Plex thing. If not, removing this file drops another 332KB.

@Cigaras Cigaras merged commit 97d0542 into Cigaras:master May 22, 2017
@levibuzolic levibuzolic deleted the compress-icons branch May 22, 2017 06:12
@Cigaras
Copy link
Owner

Cigaras commented Jun 23, 2017

icons.pdn is a paint.net project for all the icons, it is not used by plug-in but is present in repository in case I will need to add more icons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants