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.
2 parents d181f63 + e96a2ca commit e49947aCopy full SHA for e49947a
1 file changed
src/_png.cpp
@@ -532,10 +532,12 @@ static PyObject *_read_png(PyObject *filein, bool float_result)
532
png_set_shift(png_ptr, sig_bit);
533
}
534
535
+#if NPY_BYTE_ORDER == NPY_LITTLE_ENDIAN
536
// Convert big endian to little
537
if (bit_depth == 16) {
538
png_set_swap(png_ptr);
539
540
+#endif
541
542
// Convert palletes to full RGB
543
if (png_get_color_type(png_ptr, info_ptr) == PNG_COLOR_TYPE_PALETTE) {
0 commit comments