Hello,
i am using clearos on a server where i found an aplication named photo-sorting, it turns out it is based on exiftool, the gui for it seems very basic and only with a few options. I had found de conf file for the settings in the path /etc/clearos/photo_organizer.conf and inside the file i found this:
destination_folder="/var/flexshare/shares/photos"
sources="/var/flexshare/shares/hdd/Pictures/DCIM/Camera|1|1"
email_notification="#######@gmail.com"
folder_format="%Y-%B"
file_format="$make-$model-%f.%e"
valid_root_folders="var;media;home;store;mnt;tmp"
i would like to set the option to ovewrite the files in the folder "/var/flexshare/shares/photos" if there is already present.
Anyone could help to fulfill this?
thanks in advance
Ervin
Nothing in that config file appears to be anything that can change the behavior of the app. The folder_format and file_format appear to be formatting strings that will be passed to exiftool, but there's no details on the actual exiftool command. And I don't believe that exiftool will overwrite existing files during move/rename operation anyway. You could add a %c just after the %f in the file_format line to add a copy number in the case of duplicates. See the -w (textout) option (https://exiftool.org/exiftool_pod.html#w-EXT-or-FMT--textOut) for details on %c.
StarGeek is correct. The ExifTool rename feature cannot be used to overwrite existing files because this could potentially be very dangerous.
i modified the conf to
destination_folder="/var/flexshare/shares/photos"
sources="/var/flexshare/shares/hdd/Pictures/DCIM|1|1"
email_notification="&&&&&&&&@gmail.com"
folder_format="%Y-%B"
file_format="$make-$model-%f-%c.%e"
valid_root_folders="var;media;home;store;mnt;tmp"
but still got similar issues:
Warning:
Invalid EXIF text encoding for UserComment - /var/flexshare/shares/hdd/Pictures/DCIM/Camera/IMG_20170628_181356.jpg
Error: '/var/flexshare/shares/photos/2017-June/IMG_20170628_181356.jpg' already exists - /var/flexshare/shares/hdd/Pictures/DCIM/Camera/IMG_20170628_181356.jpg
Warning: Invalid EXIF text encoding for UserComment - /var/flexshare/shares/hdd/Pictures/DCIM/Camera/VID_20170607_080056.jpg
Error: '/var/flexshare/shares/photos/2017-June/VID_20170607_080056.jpg' already exists - /var/flexshare/shares/hdd/Pictures/DCIM/Camera/VID_20170607_080056.jpg
Warning: Invalid EXIF text encoding for UserComment - /var/flexshare/shares/hdd/Pictures/DCIM/Camera/IMG_20170814_191107.jpg
Error: '/var/flexshare/shares/photos/2017-August/IMG_20170814_191107.jpg' already exists - /var/flexshare/shares/hdd/Pictures/DCIM/Camera/IMG_20170814_191107.jpg
the most anoying thing that also the originals remain there, i took from different devices pictures and i wanted using this software to make sure that i will have only one version of each picture and will be sorted in an easier way and structured by date.