Hello/Hi/Greetings,
My Piwigo is installed on Ubuntu. I have uploaded photos by ftp. I have synced photos to database. All is ok. I have installed Write Metadata plugin and exif tool to write the metadata back to photos. When I put info in metadata and use write metadata into the photo, I get a duplicate photo. Exiftool renames the original photo to xxx_original.jpg without metadata and makes a new photo named xxx.jpg with the new metadata.
I don't want a copy of the original, I want the metadata written into the original photo. Is this how it is supposed to work or what am I doing wrong?
Regards, Jari
Exiftools makes a backup for security reason, how is this bad ?
If your are suze you can append the -overwrite_original to the command line on line 180 of the main.inc.php file of the plugin.
Offline
Hi
It's bad, because I will end up with duplicate photos of every photo that I write metadata into. I will have to manually remove the backups.
Thanks for the work-around. Will try it tomorrow.
Jari
Can I have some more help please? I know nothing about coding.
I'm editing the file main.inc.php with nano. The line 180 on main.inc.php file reads:
// echo $command;
Where do I insert the -overwrite_original ? What is the line supposed to look like?
Thanks for the help.
$command.= ' -overwrite_original';
Offline
That did it! Thank you! :)