Rename Files with camera model adds unwanted blank spaces in new name

Post Reply
User avatar
OldRadioGuy
Posts: 53
Joined: 15 May 12 4:44
Location: Austin, Texas, USA
Contact:

Rename Files with camera model adds unwanted blank spaces in new name

Post by OldRadioGuy » 22 Feb 21 17:10

Set up a formula to produce a rename like this:

PEN-F_21-02-22_01.JPG

Instead, the formula returns

PEN-F _21-02-22_01.JPG (10 blank spaces after PEN-F but phpBB appears unable to display 10 blank spaces)

1. Operations -> Rename Files -> Rename Window

2. Selection of Camera Model (%exif:Model) as part of the rename formula produces 10 blank spaces at the end of this section

Tested with images from an Olympus E-M1 Mark III camera and an Olympus PEN-F on ORF and JPG files. When I substituted a lens code for the camera model the rename worked correctly without the extra blank spaces.
Photo Supreme 6; DxO PhotoLab; ON1 Photo RAW; ExposureX; Affinity Photo; PhotoLine; macOS Big Sur; 27-inch iMac, Retina 5K

Hert
Posts: 6689
Joined: 13 Sep 03 7:24

Re: Rename Files with camera model adds unwanted blank spaces in new name

Post by Hert » 22 Feb 21 17:20

Some cameras fill the name with spaces. You can have them removed by trimming the value;

Code: Select all

%exif:Model{trim=y}
Or select it from the menu:
Trimming.png
Trimming.png (7.15 KiB) Viewed 86 times
This is a User-to-User forum which means that users post questions here for other users.
Feature requests, change suggestions, or bugs can be logged in the ticketing system

User avatar
OldRadioGuy
Posts: 53
Joined: 15 May 12 4:44
Location: Austin, Texas, USA
Contact:

Re: Rename Files with camera model adds unwanted blank spaces in new name

Post by OldRadioGuy » 23 Feb 21 5:55

Thanks, Hert.
Photo Supreme 6; DxO PhotoLab; ON1 Photo RAW; ExposureX; Affinity Photo; PhotoLine; macOS Big Sur; 27-inch iMac, Retina 5K

Post Reply