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 bffe631 commit 26567b3Copy full SHA for 26567b3
1 file changed
src/_png.cpp
@@ -462,10 +462,12 @@ static PyObject *_read_png(PyObject *filein, bool float_result)
462
png_set_shift(png_ptr, sig_bit);
463
}
464
465
+#if NPY_BYTE_ORDER == NPY_LITTLE_ENDIAN
466
// Convert big endian to little
467
if (bit_depth == 16) {
468
png_set_swap(png_ptr);
469
470
+#endif
471
472
// Convert palletes to full RGB
473
if (png_get_color_type(png_ptr, info_ptr) == PNG_COLOR_TYPE_PALETTE) {
0 commit comments