2022-04-15 09:42:07 +02:00
|
|
|
package media
|
|
|
|
|
|
|
|
import "github.com/photoprism/photoprism/pkg/fs"
|
|
|
|
|
|
|
|
// Formats maps file formats to general media types.
|
|
|
|
var Formats = map[fs.Type]Type{
|
2022-10-07 16:37:47 +02:00
|
|
|
fs.ImageRaw: Raw,
|
|
|
|
fs.ImageDNG: Raw,
|
|
|
|
fs.ImageJPEG: Image,
|
2023-02-14 14:43:49 +01:00
|
|
|
fs.ImageJPEGXL: Image,
|
2022-10-07 16:37:47 +02:00
|
|
|
fs.ImagePNG: Image,
|
|
|
|
fs.ImageGIF: Image,
|
|
|
|
fs.ImageTIFF: Image,
|
2023-02-13 20:02:26 +01:00
|
|
|
fs.ImagePSD: Image,
|
2022-10-07 16:37:47 +02:00
|
|
|
fs.ImageBMP: Image,
|
|
|
|
fs.ImageMPO: Image,
|
|
|
|
fs.ImageAVIF: Image,
|
2023-02-22 16:33:33 +01:00
|
|
|
fs.ImageAVIFS: Image,
|
2022-10-25 06:19:56 +02:00
|
|
|
fs.ImageHEIC: Image,
|
2023-02-22 16:33:33 +01:00
|
|
|
fs.ImageHEICS: Image,
|
2022-10-07 16:37:47 +02:00
|
|
|
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,
|
2023-02-23 18:49:56 +01:00
|
|
|
fs.VideoM4V: Video,
|
2022-10-07 16:37:47 +02:00
|
|
|
fs.VideoMKV: Video,
|
|
|
|
fs.VideoMOV: Video,
|
|
|
|
fs.Video3GP: Video,
|
|
|
|
fs.Video3G2: Video,
|
|
|
|
fs.VideoFlash: Video,
|
|
|
|
fs.VideoAVCHD: Video,
|
2022-11-16 13:53:30 +01:00
|
|
|
fs.VideoBDAV: Video,
|
2022-10-07 16:37:47 +02:00
|
|
|
fs.VideoOGV: Video,
|
|
|
|
fs.VideoASF: Video,
|
|
|
|
fs.VideoWMV: Video,
|
2023-02-22 22:45:53 +01:00
|
|
|
fs.VideoDV: Video,
|
2023-02-11 20:18:04 +01:00
|
|
|
fs.VectorSVG: Vector,
|
2023-02-13 20:02:26 +01:00
|
|
|
fs.VectorAI: Vector,
|
2023-02-11 21:12:39 +01:00
|
|
|
fs.VectorPS: Vector,
|
2023-02-11 20:18:04 +01:00
|
|
|
fs.VectorEPS: Vector,
|
2022-10-07 16:37:47 +02:00
|
|
|
fs.SidecarXMP: Sidecar,
|
|
|
|
fs.SidecarXML: Sidecar,
|
|
|
|
fs.SidecarAAE: Sidecar,
|
|
|
|
fs.SidecarYAML: Sidecar,
|
|
|
|
fs.SidecarText: Sidecar,
|
|
|
|
fs.SidecarJSON: Sidecar,
|
|
|
|
fs.SidecarMarkdown: Sidecar,
|
|
|
|
fs.UnknownType: Other,
|
2022-04-15 09:42:07 +02:00
|
|
|
}
|