-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FFI error: struct heif_decoding_options: wrong total size #84
Comments
https://github.com/carsales/pyheif/blob/694c3b2538978047e6c3070a510c03be399bc542/libheif/heif.h needs to be synced with a recent libheif version. |
Please tell me how to update "heif.h". M1 Mac I just copy it, "pip install pyheif" will cause an error in below. build/temp.macosx-13-arm64-cpython-311/_libheif_cffi.c:3535:37: error: incomplete result type 'enum heif_color_profile_type' in function definition
static enum heif_color_profile_type _cffi_d_heif_image_get_color_profile_type(struct heif_image const * x0)
^
/opt/homebrew/include/libheif/heif.h:731:6: note: forward declaration of 'enum heif_color_profile_type' Thanks |
Apply #85 |
Fixed by #87 |
I am still having this issue. Any update? |
Same problem for me ! Any update ? installed libs on my alpine pods:
|
You can install from master until the new version will be released: $ pip install git+https://github.com/carsales/pyheif.git@master#egg=pyheif |
What versions of python, pyheif, and libheif should I install and use? python:3.9.5 |
Same error as @moritaYutaroo. M1 Apple Silicon ffi.error: struct heif_decoding_options: wrong total size (cdef says 48, but C compiler says 72). fix it or use "...;" as the last field in the cdef for struct heif_decoding_options to make it flexible Install from master branch fails with many errors. |
https://pypi.org/project/pillow-heif/ |
thanks , this works ! |
I'm trying to use the pyheif library to convert HEIC files to JPEG, but I'm encountering an issue with the heif_decoding_options struct. When calling pyheif.read() on a HEIC file, I get the following error:
I have the latest versions of libheif and pyheif installed.
Here's the code I'm using to read the HEIC file:
Could you please help me understand the cause of this error and how to fix it?
Thank you!
The text was updated successfully, but these errors were encountered: