How to cancel PNG filters?

I know that you can apply PNG filters such as PNG_FILTER_UP to the imagepng () function, but how can I cancel this output. Is there a function to cancel the filter?

+3
source share
1 answer

There is no need to undo anything. A "filter" indicates one of five possible error prediction filters used internally by the PNG encoding algorithm. The decoder detects this (the stream includes information about which filter was used for each line), and it can decode the image and that's it. You may think of the “filter” as some kind of image processing, but it’s not, it does not change the image at all.

+4
source

All Articles