I have a bunch of files that have .png
extension. However, some of them are actually gif files. I can open any of the files with gimp or view them in firefox, but when I try to open them with the Eye of Gnome viewer, it gives an error
Could not load image: Fatal error reading PNG image file: Not a PNG file
Is there:
- Another image viewer that can open files with incorrect extensions that I could use as default? It would need to have the ability to zoom in and out on images, and scroll through all the images in a folder via arrow keys.
- An automated way to rename the files that are actually gif files to the correct extensions?
Choice 2 is preferred, but I don't know how to tell what type they are. I would be able to put together a Bash script to do the renaming if there is a command that could tell me the file type.