... however it seems that some popular PNG creating applications create these, and many other PNG libraries (e.g. libpng) will load the image and ignore the tRNS chunk in these cases. Would it be possible to do something similar in the Wuffs library (either by default, or with an opt-in permissive mode (which could be compile time))?
The PNG standard disallows tRNS chunks for color types 4 and 6
... however it seems that some popular PNG creating applications create these, and many other PNG libraries (e.g. libpng) will load the image and ignore the tRNS chunk in these cases. Would it be possible to do something similar in the Wuffs library (either by default, or with an opt-in permissive mode (which could be compile time))?