feat: 完善图像MimeType定义

This commit is contained in:
2025-12-17 11:13:22 +08:00
parent 2f2de5440d
commit 9e8b61fd51

View File

@ -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 图片
// GIFGraphics Interchange Format是一种位图图像格式支持动画和透明背景广泛用于网页和简单动画。
MimeTypeImageGif = "image/gif"
// MimeTypeImageWebp webp 图片
// WebP是Google开发的一种现代图像格式提供比JPEG和PNG更好的压缩率同时支持有损和无损压缩、透明度和动画。
MimeTypeImageWebp = "image/webp"
// MimeTypeImageSvg svg 图片
// SVGScalable Vector Graphics是一种基于XML的矢量图像格式可以无损缩放适合图标和简单图形。
MimeTypeImageSvg = "image/svg+xml"
// MimeTypeImageTiff tiff 图片
// TIFFTagged Image File Format是一种高质量的位图图像格式常用于专业摄影和印刷行业支持无损压缩。
MimeTypeImageTiff = "image/tiff"
// MimeTypeImageIco ico 图标文件
// ICO是Windows图标文件格式用于存储应用程序和文件的图标支持多种尺寸和颜色深度。
MimeTypeImageIco = "image/x-icon"
// MimeTypeImageHeic heic 图片
// HEICHigh Efficiency Image Container是苹果开发的高效图像格式基于HEIF标准提供更好的压缩率和图像质量。
MimeTypeImageHeic = "image/heic"
// MimeTypeImageHeif heif 图片
// HEIFHigh Efficiency Image Format是一种高效的图像容器格式支持单图像和图像序列被HEIC格式采用。
MimeTypeImageHeif = "image/heif"
// MimeTypeImageAvif avif 图片
// AVIFAV1 Image File Format是基于AV1视频编码的图像格式提供卓越的压缩率和图像质量是WebP的现代替代品。
MimeTypeImageAvif = "image/avif"
// MimeTypeImageApng apng 图片
// APNGAnimated Portable Network Graphics是PNG的扩展格式支持动画类似于GIF但提供更好的图像质量。
MimeTypeImageApng = "image/apng"
// MimeTypeImageWbmp wbmp 图片
// WBMPWireless Bitmap是一种用于移动设备的简单单色位图格式主要用于WAP应用。
MimeTypeImageWbmp = "image/vnd.wap.wbmp"
// MimeTypeImageXbm xbm 图片
// XBMX BitMap是一种单色位图格式主要用于X Window系统。
MimeTypeImageXbm = "image/x-xbitmap"
// MimeTypeImageXpm xpm 图片
// XPMX PixMap是一种彩色位图格式主要用于X Window系统支持透明度和多种颜色深度。
MimeTypeImageXpm = "image/x-xpixmap"
// MimeTypeImagePcx pcx 图片
// PCX是一种早期的位图图像格式由ZSoft公司开发曾广泛用于DOS和Windows系统。
MimeTypeImagePcx = "image/x-pcx"
// MimeTypeImageTga tga 图片
// TGATruevision Graphics Adapter是一种位图图像格式常用于游戏和3D图形应用支持透明度和多种颜色深度。
MimeTypeImageTga = "image/x-tga"
// MimeTypeImageDds dds 图片
// DDSDirectDraw 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文件
// 3GP3GPP文件格式是第三代合作伙伴项目计划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"
)