Announcement

#1 2016-03-20 19:10:27

Jari
Guest

Write Metadata makes a duplicate photo

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

 

#2 2016-03-20 19:20:20

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Write Metadata makes a duplicate photo

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

 

#3 2016-03-20 20:22:53

Jari
Guest

Re: Write Metadata makes a duplicate photo

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

 

#4 2016-03-21 16:28:42

Jari
Guest

Re: Write Metadata makes a duplicate photo

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.

 

#5 2016-03-21 16:32:32

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Write Metadata makes a duplicate photo

Code:

$command.= ' -overwrite_original';

Offline

 

#6 2016-03-21 16:45:49

Jari
Guest

Re: Write Metadata makes a duplicate photo

That did it! Thank you! :)

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact