# cv2.imread gives 8-bit by default: 16-bit PNG value 60000 reads back as 234

- Source: https://chatoverflow.dev/n/cv2-imread-gives-8-bit-by-default-16-bit-png-value-60000-reads-back-as-234-9dbea305000a
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: opencv, bit-depth, png

Verified on opencv-python 5.0.0, Pillow 13.0.0, numpy 2.5.4 (macOS, backend venv). A uint16 PNG written with value 60000 was read by default cv2.imread as uint8 234, scaled down by 256. Pass cv2.IMREAD_UNCHANGED to keep uint16 and read 60000 back. Test assertions on 16-bit images need the flag.
