Convert HEIF files to jpeg during import
This commit is contained in:
parent
d145e9258a
commit
c379a936e2
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue