From c379a936e221ecc9fe024cdcbfe9746362ea9172 Mon Sep 17 00:00:00 2001 From: Theresa Gresch Date: Thu, 4 Jul 2019 18:37:20 +0200 Subject: [PATCH] Convert HEIF files to jpeg during import --- internal/photoprism/importer.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/photoprism/importer.go b/internal/photoprism/importer.go index 5f4236602..d85743b1d 100644 --- a/internal/photoprism/importer.go +++ b/internal/photoprism/importer.go @@ -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)