Skip to main content

How to organize your exported photos from Flickr?

ยท 4 min read
Ilian Sapundshiev
TagSpaces Core Team

According to a recent announcement from Flickr, the users with the free account may lose some of their photos if they don't update to a paid plan. Luckily Flickr is providing a way to export all of your photos and videos together with some meta data including useful things such as tags and albums. So we decided to write a small script, with the purpose of sorting the files in folders and extracting that meta data in a format, which can be later recognized by TagSpaces. The script iterates through all the media files in the export folder and copies the found files in sub folders. If file is part of album, a folder with the album's name is create and the file is copied there. If this is not the case the script create a folder, which name corresponds to the date when the image was taken, and copies it there. In addition to that it parses the provided JSON file and extract the tags, the description and the comments if available. This information is saved in readable for TagSpaces JSON files, in the .ts sub folder of the folder where the image was copied previously.

Exporting your Flickr dataโ€‹

  • Your Flickr Data - You have to request and download your Flickr data, as shown in following screenshot.
    • Login to Flickr via the web
    • Click on the profile avatar and then select Settings
    • Go to "Your Flickr Data" area and request your files by clicking the "Request my Flickr data".
    • After a while the data is prepared and you have to download all the zip-files locally.

How to export Flickr data

Installing and running the scriptโ€‹

  • You will need a running Node.js environment, which can be easily achieved on Windows, macOS or Linux by just installing it from here.
  • Create a folder where the script will run.
  • Download the last version of the script directly from here or from the release section of this project and place the script export-organizer.js in the previously create folder.
  • Extract all files from all the zip exports in a sub folder called flickerData.
  • Under Windows you can right click on export-organizer.js and choose Open With... (path_to_nodejs\node.exe)
  • Alternatively you can run the script in the Windows, Linux or macOS terminal in the working folder like this:
node export-organizer.js

After a successful run of the script a new folder flickrExport will be created containing your photos distributed in sub-folders.

Resulting structureโ€‹

The folder structure before running the script should look like this:

~ your working folder โ”œโ”€โ”€ flickrData โ”‚ โ”œโ”€โ”€ img_4376_2723423425_o.jpg - image part of Album1 โ”‚ โ”œโ”€โ”€ photo_2723423425_o.json โ”‚ โ”œโ”€โ”€ img_20180823_2723427625_o.jpg - image taken on 2018-08-23 โ”‚ โ”œโ”€โ”€ photo_2723427625_o.json โ”‚ โ”œโ”€โ”€ ... - other media files โ”‚ โ”œโ”€โ”€ albums.json โ”‚ โ””โ”€โ”€ ... - other profile json files โ””โ”€โ”€ export-organizer.js

After running the script, you will have the following folder structure:

~ your working folder โ”œโ”€โ”€ flickrData โ”‚ โ”œโ”€โ”€ img_4376_2723423425_o.jpg - image part of Album1 โ”‚ โ”œโ”€โ”€ photo_2723423425_o.json โ”‚ โ”œโ”€โ”€ img_20180823_2723427625_o.jpg - image taken on 2018-08-23 โ”‚ โ”œโ”€โ”€ photo_2723427625_o.json โ”‚ โ”œโ”€โ”€ ... - other media file โ”‚ โ”œโ”€โ”€ albums.json - file containing your albums โ”‚ โ””โ”€โ”€ ... - other profile json files โ”œโ”€โ”€ flickrExport | โ”‚ โ”œโ”€โ”€ Album1 | โ”‚ | โ”œโ”€โ”€ .ts | โ”‚ | | โ”œโ”€โ”€ img_4376.jpg.json | โ”‚ | | โ””โ”€โ”€ ... other TagSpaces meta data files | โ”‚ | โ”œโ”€โ”€ img_4376.jpg | โ”‚ | โ””โ”€โ”€ ... other media files | โ”‚ โ””โ”€โ”€ 20180823 | โ”‚ โ”œโ”€โ”€ .ts | โ”‚ | โ”œโ”€โ”€ img_20180823.jpg.json | โ”‚ | โ””โ”€โ”€ ... other TagSpaces meta data files | โ”‚ โ”œโ”€โ”€ img_4376.jpg | โ”‚ โ””โ”€โ”€ ... other media files โ”‚ โ””โ”€โ”€ ... - other profile json files โ””โ”€โ”€ export-organizer.js

Managing your files with TagSpacesโ€‹

After the files are organized, you can create a new location in TagSpaces pointing to the flickrExport folder and open it. Now you will be able to navigate your photos in TagSpaces by albums and see the tags, description and comment you have added to your media files.

TagSpaces showing exported files from Flickr with metadata

Your don't need of course TagSpaces for just browsing your photos by folders. This can be achieved perfectly with the Windows Explorer or macOS Finder, but if you have spend some time organizing your photos with tags, descriptions and comments and want to use this data somehow TagSpaces might be helpful.

P.S.: If you are a TagSpaces PRO user you can even put your photos back to the Internet on a S3 compatible object storage such as Amazon's AWS S3 and connect this storage with your local installation of the product, making your photos available from everywhere.