mengoat / livp2jpg

This script can easily convert .livp files to .jpg files.
25 stars 6 forks source link

你好,有报错 #1

Open yan-ctrl opened 1 year ago

yan-ctrl commented 1 year ago

你好,我这里报错了,就照您给的教程改了文件的路径,TypeError: argument 1 must be read-only bytes-like object, not memoryview

2771096196 commented 11 months ago

The same thing happened to me

2771096196 commented 11 months ago

fix it with: image = Image.frombytes( heif_file.mode, heif_file.size, heif_file.data.tobytes(), #fix type "raw", )