Can gil library in boost 1.49 load png palette images?
I'm tried to load a png which can be found in the attachment, I find the color of this png is PNG_COLOR_TYPE_PALETTE and its depth is 8, I reviewed the code of png_io_private.hpp and found that no such type of PNG is supported. Can you give me some help about how to load such PNG with boost.gil library? Thank you very much. Best, Guangchao
On Fri, 15 Nov 2013 10:17:42 +0100, Guangchao Wang
I'm tried to load a png which can be found in the attachment, I find the color of this png is PNG_COLOR_TYPE_PALETTE and its depth is 8, I reviewed the code of png_io_private.hpp and found that no such type of PNG is supported.
Can you give me some help about how to load such PNG with boost.gil library?
Thank you very much.
Best, Guangchao
Sorry for probably off-topic, but, in a nutshell, what is the purpose of boost::gil in boost? Wouldn't using a specialized library, say ImageMagick, be a much better alternative? Regards, Slava
On 15 November 2013 10:13, Slava
On Fri, 15 Nov 2013 10:17:42 +0100, Guangchao Wang
wrote: I'm tried to load a png which can be found in the attachment, I find the color of this png is PNG_COLOR_TYPE_PALETTE and its depth is 8, I reviewed the code of png_io_private.hpp and found that no such type of PNG is supported.
Can you give me some help about how to load such PNG with boost.gil library?
Please, start new thread or at least change the subject line! Best regards, -- Mateusz Loskot, http://mateusz.loskot.net
When I found I forgot to load the image as attachment, I cancel sending the
mail, but I didn't found that the mail has already been sent.
On Fri, Nov 15, 2013 at 6:26 PM, Mateusz Loskot
On 15 November 2013 10:13, Slava
wrote: On Fri, 15 Nov 2013 10:17:42 +0100, Guangchao Wang < guangchao0831@gmail.com> wrote:
I'm tried to load a png which can be found in the attachment, I find the color of this png is PNG_COLOR_TYPE_PALETTE and its depth is 8, I reviewed the code of png_io_private.hpp and found that no such type of PNG is supported.
Can you give me some help about how to load such PNG with boost.gil library?
Please, start new thread or at least change the subject line!
Best regards, -- Mateusz Loskot, http://mateusz.loskot.net _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
There are already some functionality implemented with boost gil lbrary, my
task is adding new type images support, so I still need to use gil library.
Thank you for your help.
On Fri, Nov 15, 2013 at 6:13 PM, Slava
On Fri, 15 Nov 2013 10:17:42 +0100, Guangchao Wang < guangchao0831@gmail.com> wrote:
I'm tried to load a png which can be found in the attachment, I find the
color of this png is PNG_COLOR_TYPE_PALETTE and its depth is 8, I reviewed the code of png_io_private.hpp and found that no such type of PNG is supported.
Can you give me some help about how to load such PNG with boost.gil library?
Thank you very much.
Best, Guangchao
Sorry for probably off-topic, but, in a nutshell, what is the purpose of boost::gil in boost? Wouldn't using a specialized library, say ImageMagick, be a much better alternative?
Regards, Slava
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Hi Guangchao,
you can try the new IO lib which currently lives inside boost trunk. It
should be able to read PNG_COLOR_TYPE_PALETTE.
Let me know if you have any issues.
Thanks,
Christian
On Fri, Nov 15, 2013 at 4:17 AM, Guangchao Wang
I'm tried to load a png which can be found in the attachment, I find the color of this png is PNG_COLOR_TYPE_PALETTE and its depth is 8, I reviewed the code of png_io_private.hpp and found that no such type of PNG is supported.
Can you give me some help about how to load such PNG with boost.gil library?
Thank you very much.
Best, Guangchao
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
OK Thank you very much, later I will try the new IO lib.
Best regards,
Guangchao
On Fri, Nov 15, 2013 at 11:30 PM, Christian Henning
Hi Guangchao,
you can try the new IO lib which currently lives inside boost trunk. It should be able to read PNG_COLOR_TYPE_PALETTE.
Let me know if you have any issues.
Thanks, Christian
On Fri, Nov 15, 2013 at 4:17 AM, Guangchao Wang
wrote: I'm tried to load a png which can be found in the attachment, I find the color of this png is PNG_COLOR_TYPE_PALETTE and its depth is 8, I reviewed the code of png_io_private.hpp and found that no such type of PNG is supported.
Can you give me some help about how to load such PNG with boost.gil library?
Thank you very much.
Best, Guangchao
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (4)
-
Christian Henning
-
Guangchao Wang
-
Mateusz Loskot
-
Slava