Image data 1D-array retrieved from get_object less than number of image pixels #13654
-
I have written a simple program that allows uploading and reading of image data to minio. When I upload the image to minio, I save the height and width as metadata. However, when I call
For example, when I uploaded the image from file, the shape of the image was 64x128 (W,H). However, when I read the same image using Not sure what could be the problem ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Use |
Beta Was this translation helpful? Give feedback.
-
You are writing a jpeg file (jpeg uses lossfull compression!) and you try to read the compressed data as an uncompressed array. Or you would need to write the uncompressed data in the first place, so the result of numpy.save(image). |
Beta Was this translation helpful? Give feedback.
You are writing a jpeg file (jpeg uses lossfull compression!) and you try to read the compressed data as an uncompressed array.
You need to read it in as a jpeg image in that case.
Or you would need to write the uncompressed data in the first place, so the result of numpy.save(image).