We have a big batch of photos that I want to put in Google Photos and I want them to all have their respective captions. By caption I mean that upper-right input in the slide-out Info (i) sidebar when viewing Google Photos on desktop web. By caption I also mean that white text that overlays images as you flip through them when the Info sidebar is closed. The captions are in json files from a big Flickr download, but that's not where the challenge lies. Here's what we've tried:
We're not excited about retyping all these. I'm beginning to think the Other field is "any description defined by anything other than fingers on your keyboard." How do we set the caption with code?!?!?!?!!?!?!?
I have had success setting the media item's description using Tanaike-san's library here: https://github.com/tanaikech/GPhotoApp I added "description" to the items list:
const resource = {
albumId: albumId,
albumPosition: {
"properties": {
"position": {
"enum": [
"FIRST_IN_ALBUM",
]}}},
items: [
{
blob: DriveApp.getFileById(fileId).getBlob(),
description: descrip, <---- "your text goes here"
filename: filname,
},
{
blob: UrlFetchApp.fetch(url).getBlob(),
description: descrip, <---- "your text goes here"
filename: filname,
},
],
};