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
Support full color png as rgb (no alpha) #1559
Comments
miniz setup for this in cd3cc31 |
@cquest - can you also try |
@springmeyer with "png8:t=0" I get the same timing as "png" |
@cquest so you are comparing to |
Here are the best timing I got: png8 > 29, 30 and 29s I rechecked with "png" and "png:t=0", I now get the same timings... (around 30s, 3 tests each). |
png8:t=0 should be faster than png8, but clearly it is not and I'm not sure why. If you want to work around this issue and these speeds are not acceptable, then I recommend trying a few things:
|
In cases where the overhead of color reduction (png8) is not desirable, but full color rgba png's are too large, we can save some space by writing no-alpha rgb images.
We already support a flag for png8 encoding that allows the user to force the transparency level: 0 for no transparency, 1 for binary transparency, and 2 for partial transparency.
Therefore we can allow
png:t=0
to be able to write true color rgb images.The text was updated successfully, but these errors were encountered: