gutenex icon indicating copy to clipboard operation
gutenex copied to clipboard

Only support color_type = 2

Open esdrasedu opened this issue 10 years ago • 4 comments

Gutenex.PDF.Builders.ImageBuilder.add_image_extra_object only support color_type: 2, my png is 6

esdrasedu avatar Sep 01 '15 14:09 esdrasedu

yes! I'm almost done with this one. I've been rewriting SenecaSystems/Imagineer to handle every color type.

tyre avatar Sep 01 '15 16:09 tyre

is possible convert png color_type 6 to color_type 2 using gimp?

esdrasedu avatar Sep 01 '15 16:09 esdrasedu

You may be able to do it with imagemagick. The color type indicates which palettes to use. Color type 2 is for RGB. 6 means RGB plus an alpha value. So you could convert them, but you would lose the alpha (if this matters to you.)

If it does matter, I need to add support for all image types. That is something I should do anyway and will work on in parallel with Imagineer

tyre avatar Sep 02 '15 06:09 tyre

Okay, I've just merged in changes to SenecaSystems/Imagineer to handle reading and writing for all color types.

Next up is supporting all of them in gutenex which should, in theory, not be impossible

tyre avatar Jan 30 '16 18:01 tyre