It’s a bit strange, that Jpeg images in RGB return floating point values, as I would assume they are encoded using uint8. Could you post the results of:
img = # load image
a = np.array(img)
print(np.max(a), np.min(a), a.dtype)