3b9890e345
Signed-off-by: Michael Mayer <michael@photoprism.app>
45 lines
1.2 KiB
Go
45 lines
1.2 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.ImagePNG: Image,
|
|
fs.ImageGIF: Image,
|
|
fs.ImageTIFF: Image,
|
|
fs.ImageBMP: Image,
|
|
fs.ImageMPO: Image,
|
|
fs.ImageAVIF: Image,
|
|
fs.ImageHEIC: 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.VideoMKV: Video,
|
|
fs.VideoMOV: Video,
|
|
fs.Video3GP: Video,
|
|
fs.Video3G2: Video,
|
|
fs.VideoFlash: Video,
|
|
fs.VideoAVCHD: Video,
|
|
fs.VideoOGV: Video,
|
|
fs.VideoASF: Video,
|
|
fs.VideoWMV: Video,
|
|
fs.SidecarXMP: Sidecar,
|
|
fs.SidecarXML: Sidecar,
|
|
fs.SidecarAAE: Sidecar,
|
|
fs.SidecarYAML: Sidecar,
|
|
fs.SidecarText: Sidecar,
|
|
fs.SidecarJSON: Sidecar,
|
|
fs.SidecarMarkdown: Sidecar,
|
|
fs.UnknownType: Other,
|
|
}
|