Author Topic: warning: no writable tags set from  (Read 21358 times)

dijkstra

  • Jr. Member
  • **
  • Posts: 10
warning: no writable tags set from
« on: July 06, 2014, 11:13:08 AM »
Hello all,

I have a lot of pictures with a exif date but no iptc date. I use exiftool before and this line
-datetimeoriginal<datetimecreated always worked for me. But I went from xp to win7 and I
really don't know if it has anything to do with it but it doesnt work anymore. Is anything changed?
I get a warning: no writable tags set from

Who can help me. I have 50.000 pictures to change this way in about 2000 different folders.

thx

orax

  • Jr. Member
  • **
  • Posts: 19
Re: warning: no writable tags set from
« Reply #1 on: July 06, 2014, 08:58:49 PM »
Hello,

I don't see "datetimecreated" in tags list. There is a "CreateDate", It's an EXIF tag. And DateTimeOriginal seems to be an EXIF tag too.
Look IPTC tags here: https://exiftool.org/TagNames/index.html there is an IPTC DateCreated tag.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16727
    • ExifTool Home Page
Re: warning: no writable tags set from
« Reply #2 on: July 06, 2014, 10:31:44 PM »
DateTimeCreated is a Composite tag based on IPTC DateCreated and TimeCreated.  But your command will only work if this tag exists.  Use exiftool -time:all -s FILE to see what date/time tags exist in your file.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

dijkstra

  • Jr. Member
  • **
  • Posts: 10
Re: warning: no writable tags set from
« Reply #3 on: July 07, 2014, 02:41:16 AM »
Phil, how can I create the not existing iptc tag ?

Hayo Baan

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 1140
  • Professional Photographer & Software Developer
    • Hayo Baan – Photography
Re: warning: no writable tags set from
« Reply #4 on: July 07, 2014, 02:09:58 PM »
Simply write the tags, they will be created automatically.

For instance:
exiftool -timecreated<datetimeoriginal -datecreated<datetimeoriginal file

Exiftool will take care of just using the time or date part of a provided full datetime.

HTH,
Hayo
Hayo Baan – Photography
Web: www.hayobaan.nl

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16727
    • ExifTool Home Page
Re: warning: no writable tags set from
« Reply #5 on: July 07, 2014, 05:06:29 PM »
Thanks Hayo.  Exactly correct.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

kmoens

  • Newbie
  • *
  • Posts: 1
Re: warning: no writable tags set from
« Reply #6 on: February 24, 2018, 12:57:16 AM »
Hi,

I am a bit struggling with the format of Google takeout.

The file contains
{
  "title": "2016-11-05.jpg",
  "description": "",
  "url": "https://lh3.googleusercontent.com/-QxoUjTEr_UM/WB4plC2C7_I/AAAAAAAAmQg/UKA7-DXC7VcMgkMVJYuXoo1l6hPEc0VWwCLABGAYYCw/s0-d/2016-11-05.jpg",
  "imageViews": "20732",
  "creationTime": {
    "timestamp": "1478371732",
    "formatted": "Nov 5, 2016, 6:48:52 PM UTC"
  },
  "modificationTime": {
    "timestamp": "1478899101",
    "formatted": "Nov 11, 2016, 9:18:21 PM UTC"
  },
  "geoData": {
    "latitude": 0.0,
    "longitude": 0.0,
    "altitude": 0.0,
    "latitudeSpan": 0.0,
    "longitudeSpan": 0.0
  },
  "geoDataExif": {
    "latitude": 0.0,
    "longitude": 0.0,
    "altitude": 0.0,
    "latitudeSpan": 0.0,
    "longitudeSpan": 0.0
  }
}

But doing this :
exiftool -tagsFromFile  2017-01-09.jpg.json "-DateTimeOriginal<creationTime"  2017-01-09.jpg

gives me an error

Warning: Can't write a structure to ExifIFD:DateTimeOriginal - 2017-01-09.jpg.json
Warning: No writable tags set from 2017-01-09.jpg.json
    0 image files updated
    1 image files unchanged

Probably because creationTime is a list ?

Thank you

StarGeek

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 3806
Re: warning: no writable tags set from
« Reply #7 on: February 24, 2018, 02:42:40 AM »
Use exiftool on your Json file to see what the tags are.  As with all things google, they will change over time.  In this case, the command exiftool -g1 -a -s returns:
Code: [Select]
C:\Programs\My_Stuff>exiftool -a -s temp9.txt
FileType                        : JSON
FileTypeExtension               : json
MIMEType                        : application/json
CreationTimeFormatted           : Nov 5, 2016, 6:48:52 PM UTC
CreationTimeTimestamp           : 1478371732
Description                     :
GeoDataAltitude                 : 0.0
GeoDataLatitude                 : 0.0
GeoDataLatitudeSpan             : 0.0
GeoDataLongitude                : 0.0
GeoDataLongitudeSpan            : 0.0
GeoDataExifAltitude             : 0.0
GeoDataExifLatitude             : 0.0
GeoDataExifLatitudeSpan         : 0.0
GeoDataExifLongitude            : 0.0
GeoDataExifLongitudeSpan        : 0.0
ImageViews                      : 20732
ModificationTimeFormatted       : Nov 11, 2016, 9:18:21 PM UTC
ModificationTimeTimestamp       : 1478899101
Title                           : 2016-11-05.jpg

So the tags you would want to use would either be CreationTimeFormatted or CreationTimeTimestamp.

Neither of these tags are formatted the way exiftool would like them to copy to DateTimeOriginal so you would have to reformat them.  The easiest way would be to use CreationTimeTimestamp and the -d option:

exiftool -tagsFromFile  2017-01-09.jpg.json "-DateTimeOriginal<CreationTimeTimestamp" -d %s 2017-01-09.jpg

Also, one thing to be aware of is that the URL tag in the json file from Google Takeout is a direct public link.  Anyone can view the file regardless of any privacy settings you may have set in Google.  Just in case you want to edit your post.
Troubleshooting hints:
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.
* If your GPS coords are negative, make sure and set the GpsLatitudeRef and GpsLongitudeRef tags correctly.