Gulivertx / synology-photos-auto-sort

Script to use exiftool on a Synology NAS or any bash environment to auto sort images from a folder
MIT License
54 stars 16 forks source link

Fix a bug when copying some new files in sources folder when the scri… #2

Closed Gulivertx closed 4 years ago

Gulivertx commented 4 years ago

…pt is running, the running execution moved the new copied files directly to the error folder without process them

Delete @eaDir folder at the end in process if this folder exist in source folder to avoid unnecessary disk usage

Gulivertx commented 4 years ago

I don't really want to rename the file and copy the file in target folder if one exist with the same name. The goal of the error directory is to identify duplicate images and not have in the images database two same picture. Ok I know, it is a hand work to do...

To improve the process what could be do is to compare two images when there already is one in target folder, maybe by using imagemagick would help. And if the image is not the same (I mean the content) copy it, and if it's the same, move to error folder.

Gulivertx commented 4 years ago

OK did some search and found a stackexchange good topic where there is a trick to compare images with base64 string. I'm gonna make a try and if it's work as expected implement it

kalnak commented 4 years ago

How is it going with it now in these Corona times? :)

Gulivertx commented 4 years ago

:) base64 compare implmented, please update your repo and try again. Please tell me if it is enough before I start implement force rename, if it's enough I will not implement a force rename