Convert HEIF files to jpeg during import

This commit is contained in:
Theresa Gresch 2019-07-04 18:37:20 +02:00
parent d145e9258a
commit c379a936e2

View file

@ -124,6 +124,11 @@ func (i *Importer) ImportPhotosFromDirectory(importPath string) {
log.Errorf("could not create jpeg from raw: %s", err)
}
}
if importedMainFile.IsHEIF() {
if _, err := i.converter.ConvertToJpeg(importedMainFile); err != nil {
log.Errorf("could not create jpeg from heif: %s", err)
}
}
if jpg, err := importedMainFile.Jpeg(); err != nil {
log.Error(err)