Closed Gulivertx closed 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.
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
How is it going with it now in these Corona times? :)
:) 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
…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