this post was submitted on 03 Jun 2024
1 points (100.0% liked)

It's A Digital Disease!

23 readers
1 users here now

This is a sub that aims at bringing data hoarders together to share their passion with like minded people.

founded 2 years ago
MODERATORS
 
The original post: /r/datahoarder by /u/Wakabala on 2024-06-02 07:08:46.

I just got gallery-dl up and running and can't seem to figure out how to get it to save an image's tags to the image file. Ideally, I want to save images from pixiv and booru sites and be able to search my archive via a tag using XnView

I know image files have a "tag" value in details, I'm not sure if gallery-dl can write the tags to this field or if there's a better way to do it. I saw it has the capability to write the tag data for the image in a text file which doesn't seem very helpful to me.

For example

If I searched "Raiden" it should bring up these two pictures:

https://www.pixiv.net/en/artworks/118951558

https://danbooru.donmai.us/posts/7563608

This is my config file for pixiv: (I've tried "original" and "translated" for tags and neither seemed to work)

"pixiv":
{
  "archive": "H:/Pics/gallery-dl/archive-pixiv.sqlite3",
  "directory": ["Pixiv", "Artists", "{rating}", "{user[id]}"],
  "refresh-token": "x",
  "include": "artworks",
  "embeds": false,
  "metadata": true,
  "metadata-bookmark": false,
  "tags": "translated",
  "ugoira": true,
  "skip": "abort:10",
  "filename": "{id} โ€” {title} โ€” {num}.{extension}",
  "favorite":
  {
    "directory": ["Pixiv", "Favorites", "{rating}", "{user[id]}"]
  },
  "bookmark":
  {
    "directory": ["Pixiv", "My Bookmarks", "{rating}", "{user[id]}"],
    "refresh-token": "x"
  },
  "postprocessors": [{
    "name": "ugoira",
    "ffmpeg-args": ["-c:v", "libvpx", "-crf", "4", "-b:v", "5000k"],
    "ffmpeg-twopass": true,
    "keep-files": false
  }]
},

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here