-
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.data
will be equal tojpeg_bytes
, as you code just createdHeifFile
class from provided raw image data(jpeg_bytes)If you want to get encoded
HEIC
orAVIF
file fromjpeg_bytes
you 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")