Menu

#84 Patch: use primary image for heic even when have multiple image

Unstable_(example)
closed-fixed
None
5
2025-01-29
2025-01-27
No

This patch does not add multi-image support for HEIF, which is what the comment in the code is asking for. However, it does allow for these images to succeed using the primary image. I'm sure this has been considered. But thought I would just see if there was any appetite for allowing for these images to succeed. The primary image is the intended display image in multi-image HEIF files and the HEIF spec requires a primary image.
https://github.com/strukturag/libheif/blob/1a131f9be0e899004233b605cd3102251986d933/libheif/api/libheif/heif.cc#L620
So being able to convert these images to jpeg using the primary image would be great.

Thanks in advance for your consideration of this patch,
Kevin

1 Attachments

Discussion

  • Kevin Clauson

    Kevin Clauson - 2025-01-27

    Here was my multi-image heic that I used for testing.

     
  • Kevin Clauson

    Kevin Clauson - 2025-01-27

    I also tested it with this heic image which is an example of where the primary image is not the first image.

     
  • Bob Friesenhahn

    Bob Friesenhahn - 2025-01-29
    • status: open --> closed-fixed
    • assigned_to: Bob Friesenhahn
     
  • Bob Friesenhahn

    Bob Friesenhahn - 2025-01-29

    Your very useful changes have been incorporated as Mercurial changeset 17675:9f09bb6ab080 and will be in the daily development snapshot. Many more changes will be necessary in order to read multi-frame HEIF formats.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.