Suppressing warnings generated by libPNG
Dinesh Iyer <[email protected]> Mon, 12 Nov 2018 11:09:21 -0500
| Newsgroups | gmane.comp.graphics.png.devel |
|---|---|
| Message-ID | <CAHcSuBonBNrd6PNuvbnqFr97T8HnyLr_XbnUhJzwA4ehQqi1dQ@mail.gmail.com> |
Hi team, I am developing an application that uses libpng for reading/writing PNG files. I am upgrading from using version 1.2.39 to 1.6.35 of the library. After this upgrade, I noticed that reading many files in my repository resulted in the warning: iCCP: known incorrect sRGB profile I believe this was introduced in 1.6.x. I have fixed all the PNG files that I ship with my application. However, as my users have PNG files that might suddenly result in a warning when read, is there a way I can suppress this warning when building the library? The current workaround I have is to inspect the message in my WarningHandler for this specific string and filter it out which does not appear to be a robust solution. Regards, Dinesh _______________________________________________ png-mng-implement mailing list png-mng-implement-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/png-mng-implement