-
|
log seems to show jpeg bytes rather than heic bytes, have I missed something? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Can you please elaborate a bit? If you want to get encoded Or you can directly call |
Beta Was this translation helpful? Give feedback.
Can you please elaborate a bit?
content
heif_file.datawill be equal tojpeg_bytes, as you code just createdHeifFileclass from provided raw image data(jpeg_bytes)If you want to get encoded
HEICorAVIFfile fromjpeg_bytesyou need to callheif_file.save("output.heic")Or you can directly call
pillow_heif.encode(mode='RGBA', size=(595,842), data=jpeg_bytes, "output.heic")