Is it actually crashing or doing the wrong thing when writing the file? Or are you just getting a stray message printed from inside libpng that is, in actuality, a harmless false alarm?
Do you know what version of libpng you are using, and are you sure you have compiled it in release mode and not some kind of debug mode? > On Jul 29, 2020, at 4:50 AM, MONSIEUR LIXM <[email protected]> wrote: > > Hello, > I run into an error when i’m trying to convert a .tiff into .png : > « libpng error: known incorrect sRGB profile » > > Can’t find where it comes from , it just seems that the message pop after > this last line : > > in_buf_rgba.specmod().attribute("compression", self.compression.lower()) > in_buf_rgba.specmod().attribute("oiio:ColorSpace", "sRGB") # self.out_cs if > not ODT_DICO.get(self.odt) else self.odt) > bitdepth = self.bitdepth_picker(in_buf_data.nativespec().format, > self.out_bitdepth) > in_buf_rgba.set_write_format(bitdepth) > > here my variable « bitdepth » is a string as « UINT8, UINT16, … » > I suppose that I am missing a metadata information to make it work. > > If you could point me in which direction to go. > > Kindly, Liam Collod. > > > > > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > Garanti sans virus. www.avast.com > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> > > <x-msg://32/#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>_______________________________________________ > Oiio-dev mailing list > [email protected] <mailto:[email protected]> > http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org > <http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org> -- Larry Gritz [email protected]
_______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
