Hey, thanks for your answer, So it is just a message that doesn’t stop the code BUT the written file is actually corrupted.(you can’t read it) I didn’t compiled OIIO myself , I am using a Python Wheel made by Fredrik Averpil. But this is the only error i had from now, if i convert an exr/hdr to png I don’t have any issue. It only pop for tiff to png. Liam. ---------------------------------------------------------------------- Message: 2 Date: Wed, 29 Jul 2020 10:30:36 -0700 From: Larry Gritz <[email protected]> To: OpenImageIO developers <[email protected]> Subject: Re: [Oiio-dev] LibPng error Message-ID: <[email protected]> Content-Type: text/plain; charset="utf-8" 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. wwwavast.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 -------------- next part -------------- An HTML attachment was scrubbed.. URL: <http://lists.openimageio.org/pipermail/oiio-dev-openimageio.org/attachments/20200729/0cee71db/attachment.html> ------------------------------ Subject: Digest Footer _______________________________________________ Oiio-dev mailing list http://lists.openimageioorg/listinfo.cgi/oiio-dev-openimageio.org ------------------------------ End of Oiio-dev Digest, Vol 142, Issue 32 ***************************************** |
_______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
