diff --git a/internal/photoprism/convert_image_jpeg.go b/internal/photoprism/convert_image_jpeg.go index 3e366e937..11f220fcc 100644 --- a/internal/photoprism/convert_image_jpeg.go +++ b/internal/photoprism/convert_image_jpeg.go @@ -29,7 +29,7 @@ func (c *Convert) JpegConvertCommands(f *MediaFile, jpegName string, xmpName str // Extract a still image to be used as preview. if f.IsAnimated() && !f.IsWebP() && c.conf.FFmpegEnabled() { // Use "ffmpeg" to extract a JPEG still image from the video. - result = append(result, exec.Command(c.conf.FFmpegBin(), "-y", "-i", f.FileName(), "-ss", ffmpeg.PreviewTimeOffset(f.Duration()), "-vframes", "1", jpegName)) + result = append(result, exec.Command(c.conf.FFmpegBin(), "-y", "-ss", ffmpeg.PreviewTimeOffset(f.Duration()), "-i", f.FileName(), "-vframes", "1", jpegName)) } // Use heif-convert for HEIC/HEIF and AVIF image files. diff --git a/internal/photoprism/convert_image_png.go b/internal/photoprism/convert_image_png.go index 660532913..43676b390 100644 --- a/internal/photoprism/convert_image_png.go +++ b/internal/photoprism/convert_image_png.go @@ -28,7 +28,7 @@ func (c *Convert) PngConvertCommands(f *MediaFile, pngName string) (result []*ex // Extract a video still image that can be used as preview. if f.IsAnimated() && !f.IsWebP() && c.conf.FFmpegEnabled() { // Use "ffmpeg" to extract a PNG still image from the video. - result = append(result, exec.Command(c.conf.FFmpegBin(), "-y", "-i", f.FileName(), "-ss", ffmpeg.PreviewTimeOffset(f.Duration()), "-vframes", "1", pngName)) + result = append(result, exec.Command(c.conf.FFmpegBin(), "-y", "-ss", ffmpeg.PreviewTimeOffset(f.Duration()), "-i", f.FileName(), "-vframes", "1", pngName)) } // Use heif-convert for HEIC/HEIF and AVIF image files.