MIME类型“ image / jpg”是否与“ image / jpeg”相同?

Pretty simple question but can't seem to find it anywhere online. 很简单的问题,但似乎无法在网上找到它。 I'm trying to
摘要由CSDN通过智能技术生成

本文翻译自:Is the MIME type 'image/jpg' the same as 'image/jpeg'?

Pretty simple question but can't seem to find it anywhere online. 很简单的问题,但似乎无法在网上找到它。 I'm trying to make a program that depending on the file type will give me the extension. 我正在尝试制作一个程序,该程序根据文件类型为我提供扩展名。


#1楼

参考:https://stackoom.com/question/2hn2P/MIME类型-image-jpg-是否与-image-jpeg-相同


#2楼

No, image/jpg is not the same as image/jpeg , only image/jpeg is recognised as the actual mime type for JPEG files. 不, image/jpgimage/jpeg ,只有image/jpeg被识别为JPEG文件的实际mime类型。

See https://tools.ietf.org/html/rfc3745 , https://www.w3.org/Graphics/JPEG/ . https://tools.ietf.org/html/rfc3745https://www.w3.org/Graphics/JPEG/

Serving the incorrect Content-Type of image/jpg to IE can cause issues, see http://www.bennadel.com/blog/2609-internet-explorer-aborts-images-with-the-wrong-mime-type.htm . 向IE提供不正确的Content / Type的image/jpg内容类型可能会导致问题,请参见http://www.bennadel.com/blog/2609-internet-explorer-aborts-images-with-the-wrong-mime-type.htm


#3楼

For those it might help, I use this list as a reference to define my content-type when I have to deal with images on my app. 对于那些可能会有所帮助的应用程序,当我必须处理应用程序上的图像时,可以使用此列表作为定义内容类型的参考。

It says that jpg extension can be declared with Content-type : image/jpeg 它说jpg扩展名可以用

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值