Open RhetTbull opened 3 months ago
I had a go and it also crashed. I wonder if we could detect the empty metadata status, and if it's empty, manually add an entry of metadata (for example, something as simple as exif version
or a user comment) to restore the metadata dict.
That's a good idea. Maybe ProcessingSoftware
?
The name and version of the software used to post-process the picture.
Sounds good! I will take a look at this problem and see if I can create a patch.
Hi @RhetTbull ! Long time no see - I had a quite busy July & just got back on coding stuff.
I wonder what's your thought on introducing exiftools to this project. Or I should just use Core Graphic & AV Foundation?
Cheers.
Hi @am1006 I'd prefer to keep this as a native library without external dependencies. The entire reason I created this was exiftool could not create the necessary metadata but now that I have it's nice to be able to use this without calling exiftool (and in some use cases I have planned, calling an external process won't be possible due to app sandboxing).
Steps to reproduce:
On a test heic and mov file, run
exiftool -all= test.heic
. This removes the entire metadata dictionary (and is something you should do as it also removes the color profile). Then runmakelive test.*
. This results in a crash:I tried creating an empty metadata dict if none was found but that results an 0-byte file when written.