Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
PNG files are created with 48/64 bit depth, not 24/32 - results in increased file size, potential incompatibility/standards breach #157
I noticed that some of the PNG files RFB creates, specifically the android-chrome*.png and apple-touch*.png have 48 or 64 bpp rather than the expected 24 or 32.
This isn't always the case, it seems to primarily happen to those created with the "Add a solid, plain background...." feature, but there might be other settings that do it.
This has a few problems:
Wow, I never realized this. Thank you very much for reporting this one with so much details.
I suppose ImageMagick (used internally to generate the pictures) can manage this. I think the easiest solution is to blindly re-encode each generated picture to make sure everything it properly encoded, whatever the options.
I've had a look at the options for ImageMagick, it looks like if you just add:
You might also want to add this which will make the file as small as possible:
Hope this sorts it out :)