You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Several other PNG optimisers such as zopflipng have the option to perform "lossy" alpha optimisations. Pixels which are fully transparent may still have RGB data associated; the "lossy" part is to discard said RGB data (which means it's perceptually lossless). An advanced form of this is to set the fully transparent pixels to an RGB value that allows easier compression by the block filters and DEFLATE, depending on the visible pixel data in the image.
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion! I can see the merit in this. I'm on the fence as to whether this should be an option or enabled by default.
It shouldn't be too difficult to implement the advanced form to play well with the block filters and DEFLATE. Something like:
Set RGB value to those of the previous pixel. If no previous pixel, set to the value of the pixel above. If this is the first pixel in the image, set to 0 0 0.
Several other PNG optimisers such as zopflipng have the option to perform "lossy" alpha optimisations. Pixels which are fully transparent may still have RGB data associated; the "lossy" part is to discard said RGB data (which means it's perceptually lossless). An advanced form of this is to set the fully transparent pixels to an RGB value that allows easier compression by the block filters and DEFLATE, depending on the visible pixel data in the image.
The text was updated successfully, but these errors were encountered: