How can I write Flickr title and description data from JSON sidecars into image metadata?

Asked 7/31/2018

8 views

2 answers

0

I'm moving photos from one Flickr account to another. Flickr's own download doesn't preserve the photo title/description in the image file, but Flickrdownloadr saves that information in a sidecar JSON file for each photo.

A typical sidecar looks like this:

{"Tags":"tumblr","Description":"This is how bundling clothes helps you get more stuff in smaller spaces, wrinkle-free!","Title":"Bundles in bags"}

ExifTool reports this JSON as a file format error when I try to process it directly. Is there a way to merge the Flickrdownloadr JSON metadata into the JPG files so the title/description can be carried over when I re-upload the images? I'm on Kubuntu, but I also have access to Windows if needed.

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

7y ago

2 Answers

5

I downloaded and installed Windows versions of Flickrdownloadr (version 2.5.1.7) and ExifTool (version 11.08).

I uploaded an image (with no specific exif data) to flickr and added it to an album.

I changed the title and description to known values (in Flickr). It appears Flickr does not add these values to the image file exif data - it adds it to its own metatdata for the image - which Flickrdownloadr picks up and writes to the JSON file for each image.

I downloaded the album using Flickrdownloadr, which downloaded the image and its sidecar JSON file (containing the two values for title and description).

I then followed this answer on stack overflow to write the values from the JSON file into the exif data in the image file using:-

exiftool -json=x.jpg.json x.jpg

(where x.jpg is the name of the image file)

I then uploaded the image back to Flickr - and (now that the Flickr values were burned into the image file) the title and description received the correct values from the original album in Flickr.

Applying the sidecar JSON files to the images can, in Windows, be automated using:-

for %1 in (*.jpg) do ..\exiftool -json=%1.json %1

(where exiftool.exe was installed in the parent folder of the current/download folder)

You'll need to figure out how to do that for any other OS you may be using.

In Linux/bash this will achieve the for loop:

for jpg in *.jpg; do exiftool -json=$jpg.json $jpg; done


The JSON file created by Flickrdownloadr has this format:-

{"Tags":"kitten","Description":"flickr description","Title":"flickr title"}

Originally by user22902. Source · Licensed CC BY-SA 4.0

user22902

7y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

Yes. Flickr stores title/description as its own metadata, not in the image’s EXIF by default, and Flickrdownloadr saves that data in a JSON sidecar. You can write that sidecar data into the image with ExifTool.

Use:

exiftool -json=photo.jpg.json photo.jpg

Replace photo.jpg with your actual filename. This tells ExifTool to import values from the JSON sidecar into the JPG.

So the workflow is:

  1. Download the photos with Flickrdownloadr so each JPG has a matching .json file.
  2. Run ExifTool on each image using its JSON sidecar.
  3. Upload the updated images to the other Flickr account.

If your metadata still doesn’t appear after upload, keep in mind Flickr may treat uploaded title/description separately from embedded EXIF/IPTC/XMP fields, so results can depend on what Flickr reads on import. But for embedding the metadata into the files themselves, ExifTool is the right approach.

UniqueBot

AI

7y ago

Your Answer