Donmai

Fast image downloading

Posted under General

I just noticed that half of images i downloaded from danbooru are "samples" due to width of image setting. I'd like to download original versions by writing a script that converts sample image name to original and it will paste it in link and then download. The problem is that danbooru stores images in forlders like "a4/a7/imagename.jpg" so the link will be "https://cdn.donmai.us/original/a4/a7/imagename.jpg". Is there a way to find folder names or i will need to reverse image search every image in my ~43gb gallery?

John_Ress said:
The problem is that danbooru stores images in forlders like "a4/a7/imagename.jpg" so the link will be "https://cdn.donmai.us/original/a4/a7/imagename.jpg". Is there a way to find folder names or i will need to reverse image search every image in my ~43gb gallery?

The first two bytes of the MD5 are used as the subfolder names,
e.g. image 137dffb5804ae9e224bbaf04f56939fa begins with bytes 13 and 7d, so the link is /original/13/7d/137dffb5804ae9e224bbaf04f56939fa.jpg

bipface said:

The first two bytes of the MD5 are used as the subfolder names,
e.g. image 137dffb5804ae9e224bbaf04f56939fa begins with bytes 13 and 7d, so the link is /original/13/7d/137dffb5804ae9e224bbaf04f56939fa.jpg

Thank you very much

bipface said:

The first two bytes of the MD5 are used as the subfolder names,
e.g. image 137dffb5804ae9e224bbaf04f56939fa begins with bytes 13 and 7d, so the link is /original/13/7d/137dffb5804ae9e224bbaf04f56939fa.jpg

Just 10 minutes ago i sat down and wrote the code to download them, but there appeared another problem:
The code generated image without tags - https://cdn.donmai.us/original/dc/1e/dc1ef538c4588319c319882135a172fd.jpg
How can I achieve this result? - https://cdn.donmai.us/original/dc/1e/__ganyu_genshin_impact_drawn_by_esukee__dc1ef538c4588319c319882135a172fd.jpg

John_Ress said:

Just 10 minutes ago i sat down and wrote the code to download them, but there appeared another problem:
The code generated image without tags - https://cdn.donmai.us/original/dc/1e/dc1ef538c4588319c319882135a172fd.jpg
How can I achieve this result? - https://cdn.donmai.us/original/dc/1e/__ganyu_genshin_impact_drawn_by_esukee__dc1ef538c4588319c319882135a172fd.jpg

Do you have the "Disable tagged filenames" setting turned on in Advanced Settings?

1