Skip to content

Compress image assets to reduce bundle size - #125

Merged
Cigaras merged 1 commit into
Cigaras:masterfrom
levibuzolic:compress-icons
May 22, 2017
Merged

Cigaras merged 1 commit into
Cigaras:masterfrom
levibuzolic:compress-icons

Conversation

@levibuzolic

Copy link
Copy Markdown
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

Cigaras commented Jun 23, 2017

Copy link
Copy Markdown
Owner

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