Does linux support images in .jpeg format? What is the difference if I save my image in .jpeg or .JPEG or .jpg from a linux point of view? Is this case sensitive?

  • 4
    What do you mean by "support"?
    – Pekka
    Jun 29 '10 at 12:23
  • 1
    Not a question?
    – Hello71
    Jun 29 '10 at 19:19

Quite meaningless question, as Linux is only the kernel of the operating system. I have doubts about a kernel using images. Even the operating system itself does not need images.

But all imaging programs, and all the window managers support jpeg images. They can be named equally .jpeg, .jpg ...


Linux supports jpeg format images. All three variants would be auto-magically recognized to be jpeg images by most modern linux desktop management systems and, for instance, be automagically opened by whatever default image viewing software your system uses.

As noted, linux file names are case sensitive - so it will consider files "foo.jpg" and "FOO.JPG" to be different files.


There are a lot of programs running on Linux that can handle JPEG files. It's up to them if they care about file name extension or not and how they do that.

So there are programs that will not recognise .JPEG but only .jpg as an file name extension for JPEG files, while others will even accept .mp3 or .doc as they just don't care about how you name your files.


Another point to consider: The whole .extension format is a windows thing, not a linux/unix thing. *nixs don't care what the file ends with, they read the file type from the header. So if you're having problems opening a .jpg file in Linux the problem is more likely with the file than with the OS.

Assuming you have Imagemagick installed (pretty common), you can just type identify file.jpg from the command line and it will tell you what kind of file Linux thinks it's looking at. (It's should say something like: file.jpg JPEG 80x108 80x108+0+0 PseudoClass 256c 19.5kb)


Filenames under unixoid operating systems are case-sensitive.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy