ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: linuxuser on December 11, 2017, 06:16:39 PM

Title: Cannot remove Copyright (C) Caplio R1 User
Post by: linuxuser on December 11, 2017, 06:16:39 PM
I tried -Copyright= and -EXIF.Copyright= to delete the existing value, no chance. I doesn't work too to write any value for the Copyright.

[EXIF]          0x8298 Copyright                       : (C) Caplio R1 User
Title: Re: Cannot remove Copyright (C) Caplio R1 User
Post by: linuxuser on December 11, 2017, 06:47:41 PM
It drives my crazy, once it worked with a copy.

exiftool -v -EXIF:copyright="bla" test.jpg
======== test.jpg
Rewriting test.jpg...
  Editing tags in: APP0 APP1 IFD0 JFIF
JPEG APP0 (14 bytes):
  Rewriting JFIF
JPEG APP1 (7572 bytes):
  Rewriting IFD0
  Rewriting ExifIFD
  Rewriting MakerNoteRicoh
  Rewriting ImageInfo
  Rewriting RicohSubdir
  Error = [minor] Bad format (0) for MakerNotes entry 0
  Rewriting InteropIFD
  Rewriting IFD1
JPEG APP13 (1056 bytes):
JPEG APP1 (3985 bytes):
JPEG DQT (65 bytes):
JPEG DQT (65 bytes):
JPEG SOF0:
JPEG DHT (29 bytes):
JPEG DHT (85 bytes):
JPEG DHT (27 bytes):
JPEG DHT (80 bytes):
JPEG SOS
Error: [minor] Bad format (0) for MakerNotes entry 0 - test.jpg
    0 image files updated
    1 files weren't updated due to errors
Title: Re: Cannot remove Copyright (C) Caplio R1 User
Post by: linuxuser on December 11, 2017, 07:53:25 PM
Files from this camera also do not write EXIF-GPS, but XMP coordinates. I used -a.

I would like to try to copy all GPS-XMP-values to EXIF-GPS.

XMP contains, eg:

[XMP]                - GPS Altitude
[XMP]                - GPS Altitude Ref
[XMP]                - GPS Latitude
[XMP]                - GPS Longitude
[XMP]                - City
[XMP]                - Country
[XMP]                - State


I tried already

-tagsfromfile ... -GPS:GPSLatitude -GPS:GPSLatitudeRef -GPS:GPSLongitude -GPS:GPSLongitudeRef -GPS:GPSAltitude -GPS:GPSAltitudeRef -GPSMeasureMode -GPSMapDatum

This doesn't work, nothing is written. So what could I try? Since I have no problems with files from other cameras, I need probably something very special. Unfortunately in this case, the F-stop app wants Exif-Data, no XMP, so it is not enough to see the coordinates in another part.

Title: Re: Cannot remove Copyright (C) Caplio R1 User
Post by: StarGeek on December 11, 2017, 08:40:23 PM
Try adding the -m option for the copyright tag problem.

For copying the XMP gps data to the GPS group, your best bet is to use the xmp2gps.args file.  You can get it from SourceForge (https://sourceforge.net/p/exiftool/code/ci/master/tree/arg_files/xmp2gps.args), just click the "Download this file" link.

exiftool -@ xmp2gps.args FileOrDir
Title: Re: Cannot remove Copyright (C) Caplio R1 User
Post by: linuxuser on December 12, 2017, 03:30:01 PM
Thanks for -m, but I have to use it _everytime_, when I want to write into the copyright-field. After deleting the default copyright  "(C) Caplio R1 User" with -m, I have to write with -m a new copyright and then the gps-part was written correctly (as from other cameras). So I would say solved, but there have been cases where this didn't work at the first time, but the 2nd or 3rd time. It is not easy to check, if it works, because the files are generated by a script. I do random checks. So -m does not heal the file when a new value is written.
Title: Re: Cannot remove Copyright (C) Caplio R1 User
Post by: Phil Harvey on December 12, 2017, 09:38:11 PM
See FAQ 20 (https://exiftool.org/faq.html#Q20) to fix this file permanently.

- Phil
Title: Re: Cannot remove Copyright (C) Caplio R1 User
Post by: linuxuser on December 13, 2017, 08:07:44 AM
Thanks, I tried "exiftool -all= -tagsfromfile @ -all:all -unsafe -icc_profile bad.jpg"

After a 2nd repair I still see:

Warning: Invalid RicohSubdir data
Warning: Some character(s) could not be encoded in Latin

There are some fields with UTF-8 characters, but "ESC % G" is defined in -IPTC:CodedCharacterSet
Title: Re: Cannot remove Copyright (C) Caplio R1 User
Post by: Phil Harvey on December 13, 2017, 10:46:04 AM
If you can send me the file I will take a look. (philharvey66 at gmail.com)

- Phil
Title: Re: Cannot remove Copyright (C) Caplio R1 User
Post by: linuxuser on December 13, 2017, 02:46:05 PM
Thanks, I've seht you the mail a few minutes ago.
Title: Re: Cannot remove Copyright (C) Caplio R1 User
Post by: Phil Harvey on December 14, 2017, 07:13:45 AM
OK, yes.  The makernotes are preserved by the repair operation.  Writing with -m or deleting the makernotes entirely is the only way to fix this.

I don't see the "encoded in Latin" warning.  When I run the repair command a second time the file is binary identical to after the first time, and I don't get that warning when either reading or writing the file.

- Phil
Title: Re: Cannot remove Copyright (C) Caplio R1 User
Post by: linuxuser on December 14, 2017, 08:06:33 AM
Ok, it looks like the repair works from time to time. At the moment I cannot find a file where "Warning: Some character(s) could not be encoded in Latin" remains after a repair. I uploaded a file in the folder, where the warning appears during the 1st repair. The link is in my last email. Thanks! I think the best solution would be to use -m.
Title: Re: Cannot remove Copyright (C) Caplio R1 User
Post by: Phil Harvey on December 14, 2017, 08:20:46 AM
Ah, ok.  For the repair, -codedcharacterset should be added to the command.  This is because CodedCharacterSet is marked as "unsafe", so it isn't copied by default, so the IPTC would otherwise be transcoded into Latin.

- Phil
Title: Re: Cannot remove Copyright (C) Caplio R1 User
Post by: linuxuser on December 14, 2017, 08:40:02 AM
-overwrite_original -all= -tagsfromfile @ -all:all -unsafe

Thanks, where in the chain?
Title: Re: Cannot remove Copyright (C) Caplio R1 User
Post by: Phil Harvey on December 14, 2017, 08:50:36 AM
anywhere after the -tagsfromfile @