Author Topic: HEIC Write Support?  (Read 672 times)

sscardoso

  • Newbie
  • *
  • Posts: 3
HEIC Write Support?
« on: January 25, 2019, 06:54:05 PM »
Are there any plans to support writing to HEIC files? Would be nice to embed metadata directly to them and not have to export another format that can be written to.

StarGeek

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 2569
Re: HEIC Write Support?
« Reply #1 on: January 25, 2019, 08:17:36 PM »
**TV Announcer voice**
Previously, on the Exiftool Forum.
Troubleshooting hints:
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.
* If your GPS coords are negative, make sure and set the GpsLatitudeRef and GpsLongitudeRef tags correctly.

sscardoso

  • Newbie
  • *
  • Posts: 3
Re: HEIC Write Support?
« Reply #2 on: January 25, 2019, 10:59:19 PM »
Thanks for the reply, but neither of those posts helps me out.

Post 1: "The HEIC format is fairly complex, and it will be a while before I can accumulate enough samples and experience with this format to be able to be confident about adding the write ability."
Phil wrote this post on October 1, 2017, which was a while ago. I wanted to know if anything's changed since then.

Post 2: "I would not recommend HEIC.  This is a very complex format that will take some time before it is supported by a wide range of applications (if ever)."
Unfortunately, I am in a situation where abandoning HEIC is not an option. That's why I'm asking about writing specifically to HEICs and not looking for an alternative format.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14896
    • ExifTool Home Page
Re: HEIC Write Support?
« Reply #3 on: January 26, 2019, 07:12:21 AM »
The bottom line is that adding write support for HEIC is not likely to happen in the near future.  I know this doesn't help you out, and I'm sorry about that.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

sscardoso

  • Newbie
  • *
  • Posts: 3
Re: HEIC Write Support?
« Reply #4 on: January 26, 2019, 12:59:41 PM »
Thanks, Phil! Just wanted to confirm that was the state of things.

Marsu42

  • Full Member
  • ***
  • Posts: 67
Re: HEIC Write Support?
« Reply #5 on: January 29, 2019, 02:57:04 PM »
The bottom line is that adding write support for HEIC is not likely to happen in the near future.  I know this doesn't help you out, and I'm sorry about that.

That's unfortunate, but for completeness' sake: The format will gain further traction in the future, because the new common web codec AV1 will support a still image format "AVIF" based on the same container HEIF/MIAF like HEIC.

https://github.com/AOMediaCodec/av1-avif

Quote
This document describes how to use ISO-BMFF structures to generate a HEIF/MIAF compatible file that contains one or more still images encoded using AV1.

A pity they didn't chose the webp-like container, as the logic of av1->avif is the same as vp8->webp :-\

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14896
    • ExifTool Home Page
Re: HEIC Write Support?
« Reply #6 on: March 28, 2019, 11:41:35 AM »
Expect HEIC write support in version 11.33 (to be released soon).

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Mac2

  • Sr. Member
  • ****
  • Posts: 237
Re: HEIC Write Support?
« Reply #7 on: March 30, 2019, 08:49:17 AM »
That's great news.

Thank you very much Phil  :)
Your work on ExifTool is much appreciated. You help people manage the metadata mess, and that's just awesome.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14896
    • ExifTool Home Page
Re: HEIC Write Support?
« Reply #8 on: March 30, 2019, 09:30:36 AM »
Let me know how it goes for you.  For HEIC I'm writing the XMP in the same location as with MP4 files, but I have some HEIC files that store this in a different location.  Unfortunately HEIC is not part of the XMP specification yet, so I'm sort of on my own here.  If you have any apps that read XMP from HEIC, let me know if this works with them.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

dennis508

  • Newbie
  • *
  • Posts: 3
Re: HEIC Write Support?
« Reply #9 on: April 29, 2019, 08:43:18 AM »
A number of heic files in the Nokia samples at
https://github.com/nokiatech/heif/tree/gh-pages/content
for instance
https://github.com/nokiatech/heif/blob/gh-pages/content/images/autumn_1440x960.heic
get this error on an attempted write from ExifTool 11.38:

Error: Chunk offset in iloc atom is outside movie data

Do you know anything about this error or these files? Thanks

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14896
    • ExifTool Home Page
Re: HEIC Write Support?
« Reply #10 on: April 29, 2019, 11:57:20 AM »
Thanks for this report.

ExifTool was checking that the base offset for the data was inside idat, which as it happens is not true for these files.  This is legal, but somewhat unexpected.  Strictly, ExifTool should be checking that the base offset plus the individual offsets are inside idat.  I will fix this for ExifTool 11.39.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

dennis508

  • Newbie
  • *
  • Posts: 3
Re: HEIC Write Support?
« Reply #11 on: April 30, 2019, 05:05:01 PM »
OK. Thanks for all the great work.

dennis508

  • Newbie
  • *
  • Posts: 3
Re: HEIC Write Support?
« Reply #12 on: May 10, 2019, 09:56:51 AM »
Here's another "Chunk offset in iloc atom is outside movie data" error, this time in ExifTool 11.41.

This file came from gourd-clipart-1.heic in a zip file at
https://avi.alkalay.net/2018/08/heic-lossless-images.html


Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14896
    • ExifTool Home Page
Re: HEIC Write Support?
« Reply #13 on: May 10, 2019, 10:22:58 AM »
Thanks!  I've been gearing up to add full write support for HEIC images, so this report is very timely.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).