284

I often use JPEG images, and I have noticed that there are two very similar file extensions: .jpg, which my mobile's camera and the Preview application use, and .jpeg, with which Image Capture saves the images from scanning with my Canon MX455 printer. LaTeX doesn't seem to distinguish, as I gave it a .jpeg with the extension changed to .jpg and the result seems to be the same as if it had been a .jpg right from the start. I have wondered what the difference between the two is. I have come across this question, and will certainly read through it, though at the moment I'm slightly out of time. However, from what I saw giving it a quick look, it seems not to distinguish the two extensions. In fact, it seems the file type's name is JPEG and the file extension is .jpg:

JPEG (or JPG, for the file extension; Joint Photographic Experts Group)

(excerpted from the first answer there). So is there any big difference between the two extensions? And if so, what is it?

4

6 回答 6

432

JPG 和 JPEG 都代表联合图像专家组提出和支持的图像格式。这两个术语具有相同的含义并且可以互换。

要继续阅读,请查看JPG 和 JPEG 之间的区别

  • 不同文件扩展名的原因可以追溯到 Windows 的早期版本。联合图像专家组文件格式的原始文件扩展名为“.jpeg”;但是在 Windows 中,所有文件都需要三个字母的文件扩展名。因此,文件扩展名被缩短为“.jpg”。但是,Macintosh 不限于三个字母的文件扩展名,因此 Mac 用户使用“.jpeg”。最终,随着升级,Windows 也开始接受“.jpeg”。但是,很多用户已经习惯了“.jpg”,所以三个字母的文件扩展名和四个字母的扩展名开始被普遍使用,现在仍然如此。

  • 今天,最普遍接受和使用的格式是“.jpg”,因为许多用户都是 Windows 用户。图像应用程序(例如 Adob​​e Photoshop)会在 Mac 和 Windows 上保存所有带有“.jpg”扩展名的 JPEG 文件,以避免混淆。联合图像专家组文件格式也可以用大写的“.JPEG”和“.JPG”文件扩展名保存,这不太常见,但也被接受。

于 2014-05-02T09:03:01.263 回答
71

术语“JPEG”是创建该标准的联合图像专家组的首字母缩写。 .jpeg.jpg文件是相同的。JPEG 图像使用 6 种不同的标准文件扩展名进行标识:

  • .jpg
  • .jpeg
  • .jpe
  • .jif
  • .jfif
  • .jfi

jpgMicrosoft 操作系统仅支持 3 个字符扩展时,使用了 。

JPEG 文件交换格式(JFIF - 我列表中的最后三个扩展名)是一种图像文件格式标准,用于交换符合 JPEG 交换格式 (JIF) 标准的 JPEG 编码文件,解决了 JIF 的一些限制。JFIF 文件中的图像数据使用 JPEG 标准中的技术进行压缩,因此 JFIF 有时被称为“JPEG/JFIF”。

于 2014-05-02T09:11:49.250 回答
23

完全没有区别。

我个人更喜欢使用 3 个字母的扩展名,但您可能更喜欢使用全名。
这是纯粹的美学(个人品味),没有别的。
格式不变。

您可以将 jpeg 文件重命名为 jpg(反之亦然),没有任何变化:它们将在您的图片查看器中打开。

通过使用十六进制编辑器打开 JPG 和 JPEG 文件,您会注意到它们共享相同的标题信息。

于 2014-05-02T09:04:49.647 回答
15

它们是相同的。JPG 只是 DOS 时代的遗留物,当时文件扩展名要求为 3 个字符长。您可以在此处找到有关 JPEG 标准的更多信息。在 SuperUser上提出了一个与此非常相似的问题,其中接受的答案应该为您提供一些更详细的信息。

于 2014-05-02T09:10:00.243 回答
10

它们之间没有区别,只是image/jpegmime 类型的文件扩展名。实际上文件扩展名image/jpeg.jpg, .jpeg, .jpe .jif, .jfif,.jfi

于 2017-07-27T18:01:22.380 回答
3

文件扩展名之间没有区别,它们可以互换使用。我猜 3 个字母的版本源于 DOS 时代...

但是,JPEG 文件有不同的“风格”。最值得注意的是 JFIF 标准和 EXIF 标准。大多数情况下,这些只是使用.jpgor.jpeg作为文件扩展名,JFIF 有时使用.jifor .jfif

于 2014-05-02T09:09:01.970 回答