File Types: Add experimental support for animated GIFs #590 #2207

Animated GIFs are transcoded to AVC because it is much smaller and
thus also suitable for long/large animations. In addition, this commit
adds support for more metadata fields such as frame rate, number of
frames, file capture timestamp (unix milliseconds), media type,
and software version. Support for SVG files can later be implemented in
a similar way.
This commit is contained in:
Michael Mayer
2022-04-13 22:17:59 +02:00
parent 4253045b14
commit 82d61d1f93
165 changed files with 1569 additions and 768 deletions

View File

@@ -179,7 +179,7 @@ func PhotoUnstack(router *gin.RouterGroup) {
}
// Reset type for existing photo stack to image.
if err := stackPhoto.Update("PhotoType", entity.TypeImage); err != nil {
if err := stackPhoto.Update("PhotoType", entity.MediaImage); err != nil {
log.Errorf("photo: %s (unstack %s)", err, sanitize.Log(baseName))
AbortUnexpected(c)
return