lycheesync icon indicating copy to clipboard operation
lycheesync copied to clipboard

Lycheesync is modifying source images when importing with the -l flag

Open benoitb85 opened this issue 8 years ago • 1 comments

Hi,

I was in the process of importing my whole photo library to lychee using lycheesync. I am about 20 hours of loading in (~30 000 photos) and I am discovering through my rsync backup script that a good amount of my source photos are modified: new timestamp, and it seems a bigger file size.

Looking at the photos, they are all vertical. Are you destructively rotating source JPG photos ?

My command line is: lycheesync.sync -l /data/photos /var/www/lychee /home/myname/lycheesync/ressources/conf.json

Is this by design ? I was not warned by reading the documentation that lycheesync would touch my source photos. I should have been careful and not run it with write access to the files.

benoitb85 avatar Jul 19 '16 06:07 benoitb85

I think this would be because the original file is being saved over because of the symlink. the photo.destfullpath points to the symlink, which then points to the original. I found this by using docker volumes, I kept getting a bunch of read-only exceptions because my source is mounted as a read-only volume.

https://github.com/GustavePate/lycheesync/blob/043bc70d6f56ac791075bdc033b70d66f26ec60f/lycheesync/lycheesyncer.py#L251

joewashear007 avatar Jan 02 '19 04:01 joewashear007