Skip to content

Image data 1D-array retrieved from get_object less than number of image pixels #13654

Answered by bpedersen2
yichong96 asked this question in Q&A
Discussion options

You must be logged in to vote

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).

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@yichong96
Comment options

Comment options

You must be logged in to vote
1 reply
@yichong96
Comment options

Answer selected by yichong96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants