Hi,
I convert old photos and change the file name, which then, among other things, should contain the camera model ({EXIF:Model}).
But, the batch conversion fails if there are strange EXIF entries (see attached picture).
Can XnViewMP automatically exchange characters that are not allowed in the file system?
As a user, I am unfortunately unable to do this during batch conversion.
Thank you!
Batch convert - rename fails
Moderator: xnview
-
mcbrx
- Posts: 18
- Joined: Mon Nov 06, 2017 1:03 pm
Batch convert - rename fails
You do not have the required permissions to view the files attached to this post.
-
michel038
- XnThusiast
- Posts: 1508
- Joined: Tue Sep 27, 2016 8:18 am
- Location: France
Re: Batch convert - rename fails
You can use "Batch Rename" function :
First, add "Exif-Camera , Model" in the first field of this screen
Lower, use the "Replace" function and mark "use regex" : Write in the first field.
This means : keep only a-z, A-Z, 0-9 characters ... (and a space, you can see it between z and A)
- Another way :
This means : delete # < > and , characters
A sandbox to try and build regex expressions : https://regex101.com/
First, add "Exif-Camera , Model" in the first field of this screen
Lower, use the "Replace" function and mark "use regex" : Write
Code: Select all
[^a-z A-Z0-9.]This means : keep only a-z, A-Z, 0-9 characters ... (and a space, you can see it between z and A)
- Another way :
Code: Select all
[#<>,]This means : delete # < > and , characters
A sandbox to try and build regex expressions : https://regex101.com/
Catalogage avec XnviewMP :
https://orchisere.fr/logiciels/html/xnviewmpintro.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm
https://orchisere.fr/logiciels/html/xnviewmpintro.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm
-
mcbrx
- Posts: 18
- Joined: Mon Nov 06, 2017 1:03 pm
Re: Batch convert - rename fails
Thanks, of course it works.
But, unfortunately, renaming with Replace/Regular Expression cannot be combined with converting.
My plan is to reduce the size and copy it to another directory with changed file names.
Ok, it works now, but with 2 steps.
But, unfortunately, renaming with Replace/Regular Expression cannot be combined with converting.
My plan is to reduce the size and copy it to another directory with changed file names.
Ok, it works now, but with 2 steps.