PDA

View Full Version : Discover wrong suffix and covert to jpg



poldi
24.02.2017, 04:28 PM
As I experience Irfanview is able to recognize wrong suffixes and offers to rename the files in these cases.

I probably have several of such files in my directory-structure of thousands of jpgs.
I would like to convert those with wrong suffixes to jpgs without the need to open each individual file.

Is there a way with irfanview and the commandline-options to build a script that works recursive on all folders, detects jpgs with wrong suffixes and covert them to jpgs?

Bhikkhu Pesala
24.02.2017, 08:47 PM
I would like to convert those with wrong suffixes to jpgs without the need to open each individual file.
You don't need to open any of them. Just quickly scroll through each folder until you encounter an error, then allow IrfanView to rename the file.

poldi
25.02.2017, 05:22 AM
You don't need to open any of them. Just quickly scroll through each folder until you encounter an error, then allow IrfanView to rename the file.
What do you mean by scroll?
I think Irfanview has to look into the pictures to decide if they have a suffix that does not match the format?

By the way:
I am am talking about pictures in more than 20.000 files in subfolders and even more subfolders because not every subfolder has a picture. So a batch possibility to check the files recursively would be very convenient.

Bhikkhu Pesala
25.02.2017, 10:25 AM
What do you mean by scroll?
I think Irfanview has to look into the pictures to decide if they have a suffix that does not match the format?
Browse the folder using the next/previous file buttons.

Yes, IrfanView needs to look at the file, but you can browse a folder of 1000 images in a few minutes.

https://irfanview-forum.de/attachment.php?attachmentid=4686&stc=1&d=1488021902

poldi
25.02.2017, 06:03 PM
Browse the folder using the next/previous file buttons.

Yes, IrfanView needs to look at the file, but you can browse a folder of 1000 images in a few minutes.
Yes, I thought that you were referring to this feature but it is not really an alternative for my situation.
I don't have only some folders with thousands of images in them. I have thousands of folders with only 1-8 images in each folder and in a folder-structure of 3-4 levels.
It is the folder-structure of my music-library with images of artists and coverart in folders.

Bhikkhu Pesala
25.02.2017, 07:55 PM
1. Open the thumbnail viewer
2. Options, Load thumbnails from all subfolders
3. Press and hold the Ctrl Right Cursor shortcut.