saschiwy / HeicConverter

A very simple command line tool to convert heic files to jpg
MIT License
117 stars 16 forks source link

Works fine until empty exif :( #5

Closed njbuch closed 10 months ago

njbuch commented 10 months ago

Thanks for doing this little CLI. :)

It fails for me with:

Traceback (most recent call last):
  File "heicConverter.py", line 102, in <module>
  File "heicConverter.py", line 88, in convert_heic_to_jpeg
  File "heicConverter.py", line 44, in convert_heic_file
KeyError: 'DateTime'
[19952] Failed to execute script 'heicConverter' due to unhandled exception!
saschiwy commented 10 months ago

Do you have by any chance an example file on which it crashes?

An easy fix would be for sure simly catch the exception and store a image without metadata

saschiwy commented 10 months ago

https://github.com/saschiwy/HeicConverter/tree/Fix-handling-of-empty-exif-issue-%235

Can you verify if this fixes your issue?

saschiwy commented 10 months ago

Fixed with: Release v0.1.0