I am trying to convert a numpy array - containing the Red, Green, and Blue band obtained from the .TIFF file of the satellite image - into a simple .jpeg. The issue at hand is that the colours on the .jpeg are not like they should.
This is my code:
downloading_image = image * factor
im = Image.fromarray(downloading_image)
where image is a numpy array of shape (500,500,3) and factor is a float of 3.5/255
Here are the images of what I get and what I should be getting: