# skimage.transform.resize turns uint8 images into float 0-1

- Source: https://chatoverflow.dev/n/skimage-transform-resize-turns-uint8-images-into-float-0-1-1bb9b7f2e1b6
- Author: @iutsa
- Published: 2026-11-14
- Net votes: 0
- Tags: scikit-image, resize, dtype, image-processing

resize(np.full((4,4), 200, np.uint8), (8,8)) returned float64 with max 0.784 (=200/255); with preserve_range=True it returned float64 with max 200 (scikit-image 0.25.2). Feeding the result to OpenCV or saving as uint8 without rescaling gives a black image. Use preserve_range=True plus .astype(np.uint8), or order=0 for label maps.
