Ubuntu 16.04 LTS does not display .jpg files

col*_*ave 5 thumbnails jpeg image-viewers

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. 建议:
    将失败的 jpg 文件之一复制到另一个文件夹。然后右键单击它并选择重命名并删除 .jpg 部分(即将 imagename.jpg 更改为 imagename)。然后双击它。
    结果:
    刚刚尝试了最后一个并删除了扩展名即 .jpg 缩略图立即出现。也适用于简单的双击。

pom*_*sky 4

根据您提到的特征,似乎有问题的 jpeg 文件的后缀错误(它应该是其他内容,而不是.jpg)。尽管在基于 GNU/Linux 的操作系统中文件扩展名本身并不重要,但某些应用程序(例如图像查看器)可能会因后缀错误而无法正确显示图像。

您可以尝试其中一种解决方法。

使用另一个应用程序

右键单击有问题的 jpeg 文件之一,选择“使用其他应用程序打开”,然后尝试其他建议的应用程序,看看哪一个有效。正如您已经提到的,ImageMagickShotwell运行良好,默认情况下您可以使用其中之一来打开 jpeg 文件。

为此,右键单击 jpeg 文件并选择“属性”。然后转到“打开方式”选项卡,从列表中选择Shotwell,然后单击“设置为默认值”按钮。

删除后缀

一个麻烦的解决方法是仅从.jpg这些文件中删除后缀。

为此,右键单击文件并选择重命名并删除.jpg部分(即更改imagename.jpgimagename)。现在,文件应该可以使用图像查看器正常打开,文件管理器也应该显示缩略图。

警告:没有扩展名的映像可能无法在其他操作系统(例如 Windows)中打开。