Skip to content
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

Support heif auxiliary images #29

Closed
wants to merge 3 commits into from
Closed

Conversation

gwy15
Copy link

@gwy15 gwy15 commented Jan 21, 2025

Similary to bigcat88/pillow_heif#297, add auxiliary images support.
The main perpose of this PR is to support iPhone HDR image and extract the gainmap from its heic images.

  • add get_number_of_auxiliary_images, get_auxiliary_image_ids, get_auxiliary_image_handle and get_auxiliary_type in ImageHandle.

Known problems:

  • LIBHEIF_AUX_IMAGE_FILTER_OMIT_ALPHA and LIBHEIF_AUX_IMAGE_FILTER_OMIT_DEPTH are two macros defined in libheif, which I think weren't get codegen-ed. Perhaps I should put them in libheif-sys?

@Cykooz
Copy link
Owner

Cykooz commented Jan 23, 2025

@gwy15 Thank you for suggestion. I have already added the necessary methods into ImageHandle to work with auxiliary images - b03aca1

I have plan to make a new release soon with this change.

@Cykooz
Copy link
Owner

Cykooz commented Jan 23, 2025

I released version 1.1.0
https://github.com/Cykooz/libheif-rs/releases/tag/v1.1.0

@Cykooz Cykooz closed this Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants