Open yan-ctrl opened 1 year ago
你好,我这里报错了,就照您给的教程改了文件的路径,TypeError: argument 1 must be read-only bytes-like object, not memoryview
The same thing happened to me
fix it with: image = Image.frombytes( heif_file.mode, heif_file.size, heif_file.data.tobytes(), #fix type "raw", )
你好,我这里报错了,就照您给的教程改了文件的路径,TypeError: argument 1 must be read-only bytes-like object, not memoryview