Ubuntu – Ubuntu 16.04 LTS does not display .jpg files

image-viewersjpegthumbnails

I have a series of .jpg files that do not show on Ubuntu Image Viewer or as thumbnails. These are perfectly ok on Windows 32 and 64 and on Mac OS.

Strangely one very old .jpg file does display correctly and its thumbnail is visible in Files no bother just these new ones.

After one hair pulling exercise found some which would not display on Windows were wrongly tagged as .jpeg by extension removed all these. Now all are on a memory stick which works ok on Windows and Mac just not on Ubuntu.

Can anyone help? Please bear in mind this is only my third day with Linux installed for the first time.


Update: outcomes of some suggested fixes

  1. Suggestion:
    Right click on a jpg files, select "open with another application" and try other suggested applications. Also try to open with a web browser like Firefox or Chrome.
    Outcome:
    Just tried opening with Firefox opens ok. Also tried imagemagik and shotwell all display the images no bother.
  2. Suggestion:
    Copy one of the failing jpg files to another folder. Then right click on it and select rename and remove the .jpg part (i.e. change imagename.jpg to imagename). Then double click on it.
    Outcome:
    Just tried the last one and removed the extension i.e .jpg the thumbnail appeared immediately. Also works on simple double click.

Best Answer

As per the traits you have mentioned it seems that the jpeg files in question are wrongly suffixed (it should have been something else, not .jpg). Although in a GNU/Linux based OS file extensions don't matter per se, some applications like Image Viewer may fail to show the image properly because of the wrong suffix.

You may try one of the workarounds.

Use another application

Right click on one of the problematic jpeg files, select Open With Other Application and try other suggested applications to see which one works. As you have already mentioned ImageMagick and Shotwell are working fine, you may use one of them to open jpeg files by default.

To do that right click on a jpeg file and select Properties. Then go to the Open With tab, select say Shotwell from the list and click on the Set as default button.

Remove suffixes

A cumbersome workaround would be to just remove the .jpg suffix from those files.

To do that right click on a file and select Rename and remove the .jpg part (i.e. change imagename.jpg to imagename). Now the file should open fine with Image Viewer and File Manager should also show the thumbnail.

Warning: An image without an extension might fail to open in another OS (for example Windows).

Related Question