Are we still talking about PNG? Nowhere in the PNG standard is a description of changing the actual content of an image to make it compress better with DEFLATE. If you are thinking about the filter stage you should know that in this context an image filter is just creating a different representation of the same image, because it is fully reversible.
TIFF is also such a hot mess when it comes to picking the correct subformat because there are so many options for compression available, some of them FOSS, some of them proprietary. Edit: … and most of them quite dated.