JupiterBroadcasting / CasterSoundboard

A soundboard for hot-keying and playing back sounds. (For podcasting)
GNU Lesser General Public License v3.0
146 stars 17 forks source link

Strip images of profiles to avoid libpng warnings #31

Closed guyfawcus closed 7 years ago

guyfawcus commented 7 years ago

When running the application I'd get the following error: libpng warning: iCCP: known incorrect sRGB profile every time any of the graphics were used (loaded or clicked-on).

I found the solution on the following pages: https://wiki.archlinux.org/index.php/Libpng_errors http://stackoverflow.com/a/22747902

According to the ArchWiki, this is because:

Some changes in libpng version 1.6+ cause it to issue a warning or even not work correctly with the original HP/MS sRGB profile

To fix this I used ImageMagick's mogrify command to strip the images of all profiles and comments: mogrify -strip ./CasterSoundboard/res/img/*.png

guyfawcus commented 7 years ago

Should I have been doing this on the development branch?