News:

2023-03-15 Major improvements to the new Geolocation feature

Main Menu

warning: no writable tags set from

Started by dijkstra, July 06, 2014, 11:13:08 AM

Previous topic - Next topic

dijkstra

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

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

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/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

dijkstra

Phil, how can I create the not existing iptc tag ?

Hayo Baan

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

Thanks Hayo.  Exactly correct.

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

kmoens

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

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:
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.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).