photoprism/pkg/media/formats.go
Michael Mayer 529103462c Index: Add native support for MP4 and Samsung/Google Motion Photos #439
Related Issues:
- Samsung: Initial support for Motion Photos (#439)
- Google: Initial support for Motion Photos (#1739)
- Metadata: Flag Samsung/Google Motion Photos as Live Photos (#2788)

Related Pull Requests:
- Live Photos: Add Support for Samsung Motion Photos (#3588)
- Samsung: Improved support for Motion Photos (#3660)
- Google: Initial support for Motion Photos (#3709)
- Google: Add support for Motion Photos (#3722)

Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-09-22 23:59:56 +02:00

56 lines
1.5 KiB
Go

package media
import "github.com/photoprism/photoprism/pkg/fs"
// Formats maps file formats to general media types.
var Formats = map[fs.Type]Type{
fs.ImageRaw: Raw,
fs.ImageDNG: Raw,
fs.ImageJPEG: Image,
fs.ImageJPEGXL: Image,
fs.ImagePNG: Image,
fs.ImageGIF: Image,
fs.ImageTIFF: Image,
fs.ImagePSD: Image,
fs.ImageBMP: Image,
fs.ImageMPO: Image,
fs.ImageAVIF: Image,
fs.ImageAVIFS: Image,
fs.ImageHEIC: Image,
fs.ImageHEICS: Image,
fs.VideoHEVC: Video,
fs.ImageWebP: Image,
fs.VideoWebM: Video,
fs.VideoAVI: Video,
fs.VideoAVC: Video,
fs.VideoVVC: Video,
fs.VideoAV1: Video,
fs.VideoMPG: Video,
fs.VideoMJPG: Video,
fs.VideoMP2: Video,
fs.VideoMP4: Video,
fs.VideoM4V: Video,
fs.VideoMKV: Video,
fs.VideoMOV: Video,
fs.Video3GP: Video,
fs.Video3G2: Video,
fs.VideoFlash: Video,
fs.VideoAVCHD: Video,
fs.VideoBDAV: Video,
fs.VideoOGV: Video,
fs.VideoASF: Video,
fs.VideoWMV: Video,
fs.VideoDV: Video,
fs.VectorSVG: Vector,
fs.VectorAI: Vector,
fs.VectorPS: Vector,
fs.VectorEPS: Vector,
fs.SidecarXMP: Sidecar,
fs.SidecarXML: Sidecar,
fs.SidecarAAE: Sidecar,
fs.SidecarYAML: Sidecar,
fs.SidecarText: Sidecar,
fs.SidecarJSON: Sidecar,
fs.SidecarMarkdown: Sidecar,
fs.TypeUnknown: Other,
}