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

Investigate the use of PNGCRUSH to reduce jukebox size #930

Open
Omertron opened this issue Mar 15, 2015 · 5 comments
Open

Investigate the use of PNGCRUSH to reduce jukebox size #930

Omertron opened this issue Mar 15, 2015 · 5 comments

Comments

@Omertron
Copy link
Member

Original issue 931 created by Omertron on 2009-08-13T17:34:14.000Z:

Utilise PNGCRUSH to reduce the size of the jukebox and possibly the impact
on the media player

Could use it in the same fashion as MediaInfo, i.e. it's not critical that
it is there or not.

See: https://pmt.sourceforge.net/pngcrush/

@Omertron
Copy link
Member Author

Comment #1 originally posted by Omertron on 2010-11-09T01:09:41.000Z:

This was a personal itch, so I tried to implement it. This is my first time with the code, so it might be a little rough. But, using it will reduce PNG sizes by 10-30%. It has a noticeable (to me... placebo possible) impact on the speed of my jukebox.

Without pngcrush:
-rw-r--r-- 1 stan stan 715K Nov 8 20:03 movie_large.png
-rw-r--r-- 1 stan stan 131K Nov 8 20:03 movie_small.png

With pngcrush:
-rw-r--r-- 1 stan stan 509K Nov 8 20:03 Fight.Club_large.png
-rw-r--r-- 1 stan stan 96K Nov 8 20:03 Fight.Club_small.png

This adds two configuration parameters:
pngcrush.enable -> default false
pngcrush.home -> default ./pngcrush

This will add time to the jukebox generation. On my 5-year-old machine, it will add around 2 seconds per PNG file.

@Omertron
Copy link
Member Author

Comment #2 originally posted by Omertron on 2010-11-09T01:10:39.000Z:

This was a personal itch, so I tried to implement it. This is my first time with the code, so it might be a little rough. But, using it will reduce PNG sizes by 10-30%. It has a noticeable (to me... placebo possible) impact on the speed of my jukebox.

Without pngcrush:
-rw-r--r-- 1 stan stan 715K Nov 8 20:03 movie_large.png
-rw-r--r-- 1 stan stan 131K Nov 8 20:03 movie_small.png

With pngcrush:
-rw-r--r-- 1 stan stan 509K Nov 8 20:03 movie_large.png
-rw-r--r-- 1 stan stan 96K Nov 8 20:03 movie_small.png

This adds two configuration parameters:
pngcrush.enable -> default false
pngcrush.home -> default ./pngcrush

This will add time to the jukebox generation. On my 5-year-old machine, it will add around 2 seconds per PNG file.

@Omertron
Copy link
Member Author

Comment #3 originally posted by Omertron on 2010-11-09T10:45:20.000Z:

Nice! Thanks for taking the time to do this, I'll look to adding it to the code

@Omertron
Copy link
Member Author

Comment #4 originally posted by Omertron on 2012-05-30T23:47:44.000Z:

Any updates on this?

@Omertron
Copy link
Member Author

Comment #5 originally posted by Omertron on 2012-05-31T06:10:20.000Z:

Although the submitted code was good, it was another dependency to install and the overall benefits weren't that great. I was looking for a native java class that could do the same thing but haven't found one yet

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

No branches or pull requests

1 participant