Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76665d0 commit 48c31f7Copy full SHA for 48c31f7
1 file changed
src/_png.cpp
@@ -418,6 +418,7 @@ _png_module::_read_png(const Py::Object& py_fileobj, const bool float_result)
418
if (png_get_color_type(png_ptr, info_ptr) == PNG_COLOR_TYPE_PALETTE)
419
{
420
png_set_palette_to_rgb(png_ptr);
421
+ bit_depth = 8;
422
}
423
424
// If there's an alpha channel convert gray to RGB
0 commit comments