feat: 完善图像MimeType定义
This commit is contained in:
52
mime_type.go
52
mime_type.go
@ -37,10 +37,10 @@ const (
|
||||
// Flash动画的源文件的后缀名是fla ,而导出生成的可发布的动画文件的后缀名是awf。
|
||||
// @see https://www.yebaike.com/22/489195.html
|
||||
MimeTypeApplicationAwf = "application/vnd.adobe.workflow"
|
||||
// MimeTypeApplicationBmp .bmp后缀文件
|
||||
// MimeTypeImageBmp .bmp后缀文件
|
||||
// BMP文件是以微软开发的位图(Bitmap)图像格式保存的图片。BMP文本包含未压缩的图像数据,支持可变颜色位深度和图像元数据的单色和彩色图像。BMP是Windows系统中广泛使用的图像格式。
|
||||
// @see https://www.wenjianbaike.com/bmp.html
|
||||
MimeTypeApplicationBmp = "application/vnd.adobe.workflow"
|
||||
MimeTypeImageBmp = "image/bmp"
|
||||
// MimeTypeApplicationC4t .c4t后缀文件
|
||||
MimeTypeApplicationC4t = "application/x-c4t"
|
||||
// MimeTypeApplicationCal .cal 后缀文件
|
||||
@ -94,6 +94,52 @@ const (
|
||||
MimeTypeImageJpeg = "image/jpeg"
|
||||
// MimeTypeImagePng png 图片
|
||||
MimeTypeImagePng = "image/png"
|
||||
// MimeTypeImageGif gif 图片
|
||||
// GIF(Graphics Interchange Format)是一种位图图像格式,支持动画和透明背景,广泛用于网页和简单动画。
|
||||
MimeTypeImageGif = "image/gif"
|
||||
// MimeTypeImageWebp webp 图片
|
||||
// WebP是Google开发的一种现代图像格式,提供比JPEG和PNG更好的压缩率,同时支持有损和无损压缩、透明度和动画。
|
||||
MimeTypeImageWebp = "image/webp"
|
||||
// MimeTypeImageSvg svg 图片
|
||||
// SVG(Scalable Vector Graphics)是一种基于XML的矢量图像格式,可以无损缩放,适合图标和简单图形。
|
||||
MimeTypeImageSvg = "image/svg+xml"
|
||||
// MimeTypeImageTiff tiff 图片
|
||||
// TIFF(Tagged Image File Format)是一种高质量的位图图像格式,常用于专业摄影和印刷行业,支持无损压缩。
|
||||
MimeTypeImageTiff = "image/tiff"
|
||||
// MimeTypeImageIco ico 图标文件
|
||||
// ICO是Windows图标文件格式,用于存储应用程序和文件的图标,支持多种尺寸和颜色深度。
|
||||
MimeTypeImageIco = "image/x-icon"
|
||||
// MimeTypeImageHeic heic 图片
|
||||
// HEIC(High Efficiency Image Container)是苹果开发的高效图像格式,基于HEIF标准,提供更好的压缩率和图像质量。
|
||||
MimeTypeImageHeic = "image/heic"
|
||||
// MimeTypeImageHeif heif 图片
|
||||
// HEIF(High Efficiency Image Format)是一种高效的图像容器格式,支持单图像和图像序列,被HEIC格式采用。
|
||||
MimeTypeImageHeif = "image/heif"
|
||||
// MimeTypeImageAvif avif 图片
|
||||
// AVIF(AV1 Image File Format)是基于AV1视频编码的图像格式,提供卓越的压缩率和图像质量,是WebP的现代替代品。
|
||||
MimeTypeImageAvif = "image/avif"
|
||||
// MimeTypeImageApng apng 图片
|
||||
// APNG(Animated Portable Network Graphics)是PNG的扩展格式,支持动画,类似于GIF但提供更好的图像质量。
|
||||
MimeTypeImageApng = "image/apng"
|
||||
// MimeTypeImageWbmp wbmp 图片
|
||||
// WBMP(Wireless Bitmap)是一种用于移动设备的简单单色位图格式,主要用于WAP应用。
|
||||
MimeTypeImageWbmp = "image/vnd.wap.wbmp"
|
||||
// MimeTypeImageXbm xbm 图片
|
||||
// XBM(X BitMap)是一种单色位图格式,主要用于X Window系统。
|
||||
MimeTypeImageXbm = "image/x-xbitmap"
|
||||
// MimeTypeImageXpm xpm 图片
|
||||
// XPM(X PixMap)是一种彩色位图格式,主要用于X Window系统,支持透明度和多种颜色深度。
|
||||
MimeTypeImageXpm = "image/x-xpixmap"
|
||||
// MimeTypeImagePcx pcx 图片
|
||||
// PCX是一种早期的位图图像格式,由ZSoft公司开发,曾广泛用于DOS和Windows系统。
|
||||
MimeTypeImagePcx = "image/x-pcx"
|
||||
// MimeTypeImageTga tga 图片
|
||||
// TGA(Truevision Graphics Adapter)是一种位图图像格式,常用于游戏和3D图形应用,支持透明度和多种颜色深度。
|
||||
MimeTypeImageTga = "image/x-tga"
|
||||
// MimeTypeImageDds dds 图片
|
||||
// DDS(DirectDraw Surface)是微软开发的一种纹理格式,主要用于游戏和3D图形应用,支持多种压缩算法。
|
||||
MimeTypeImageDds = "image/vnd.ms-dds"
|
||||
|
||||
// MimeTypeJson json数据格式
|
||||
MimeTypeJson = "application/json"
|
||||
// MimeTypeTextPlain text/plain
|
||||
@ -120,5 +166,5 @@ const (
|
||||
// MimeTypeVideo3gpp .3g2/.3ga/.3gp/.3gpp文件
|
||||
// 3GP(3GPP文件格式)是第三代合作伙伴项目计划(3rd Generation Partnership Project ,简称3GPP)为3G UMTS多媒体服务定义的一种多媒体容器格式,主要应用于3G移动电话,但也能在一些2G和4G手机上播放。
|
||||
// @see https://baike.baidu.com/item/3gp/203418?fr=aladdin
|
||||
MimeTypeVideo3gpp = "video/3gpp’"
|
||||
MimeTypeVideo3gpp = "video/3gpp"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user