Date Published: February 23, 2022
How to tell if images are saved as the wrong file type
In some cases, Internet Explorer browser will fail to display images that claim to be of a certain file type (png or jpg for example). The likely cause of this is that the images are not the file type that their extension indicates. You can see what file type an image really is by running the Unix "file" command:
Running this command from a terminal in the directory that contains the images in question will check the file type of all files that contain jpg, and prints output if it contains PNG. Output will be similar to the following:
PNG image data, 197 x 256, 8-bit/color RGBA, non-interlaced
One can reverse this command to look for jpg files pretending to be png:
If you find files in this state, you can rename the file with a new extension:
mv filename.png filename.jpg
This should resolve the issue of such images not displaying correctly in Internet Explorer.
Did not find what you were looking for?
If this content did not answer your questions, try searching or contacting our support team for further assistance.