gallery-dl icon indicating copy to clipboard operation
gallery-dl copied to clipboard

Downloading Patreon's highest resolution images

Open Fukitsu opened this issue 3 years ago • 6 comments

I downloaded the feed of a creator and noticed by looking at the metadata file that gallery-dl downloads the "original" file which is the second highest resolution, the highest being the "large_url". For example, the resolution of an image downloaded is 662x1250 when the resolution from the "large_url" is 1600x3021. Is there a way to download the "large_url" files by default?

Fukitsu avatar Feb 02 '22 03:02 Fukitsu

Do you have an example of where this is happening?

shinji257 avatar Feb 02 '22 04:02 shinji257

After checking more files I noticed the "large_url" is not always the one with the highest resolution but I'd still like to be able to download those files (or all the files in all the available resolutions) but in the metadata file the "large_url" only appears for the first file in a post. Like this:

This one is the first file in a post
"image": {
        "height": 1250,
        "large_url": "xyz",
        "thumb_url": "xyz",
        "url": "xyz",
        "width": 662
    },
Then there's this array of images 
    "images": [
        {
            "download_url": "xyz",
            "file_name": "IMG_1106.jpg",
            "image_urls": {
                "default": "xyz",
                "original": "xyz",
                "thumbnail": "xyz"
            },
            "metadata": {
                "dimensions": {
                    "h": 1250,
                    "w": 662
                }
            }
        },

How can I get it for each of the files? I've tried these post processors

"postprocessors":
            [
                {
                    "name": "metadata",
                    "event": "after",
                    "filename": "{filename}.json"
                }
            ]
"postprocessors":
            [
                {
                    "name": "metadata",
                    "event": "file",
                    "filename": "{filename}.json"
                }
            ] 
"postprocessors":
            [
                {
                    "name": "metadata",
                    "event": "post",
                    "filename": "metadata.json"
                }
            ]

Fukitsu avatar Feb 02 '22 04:02 Fukitsu

For example this post https://www.patreon.com/posts/im-in-love-with-58357810 The image downloaded by gallery-dl is 900x1301 pixels but the file from the metadata, the "large_url" (https://c10.patreonusercontent.com/3/eyJ3IjoxNjAwfQ%3D%3D/patreon-media/p/post/58357810/912caffdc626419fbf29a091d3f0cdf9/1.jpg?token-time=1645056000&token-hash=jT9lEeK9PzzjLASG25VDW43tjIADJrbORfovjCZDAko%3D), is 1600x2313 pixels

Fukitsu avatar Feb 02 '22 18:02 Fukitsu

@Fukitsu I'm a beginner in program can you teach me to view 1600x2313 pixels (the example you gave) image i didn't find it Is my method wrong?

gcfvfhg avatar Feb 27 '22 13:02 gcfvfhg

@gcfvfhg I used gallery-dl's metadata file and looked at the URLs, but it seems like Patreon itself only serves the "large_url" for the first file of each post only

Fukitsu avatar Feb 27 '22 19:02 Fukitsu

The "image_large" fix only works for the first image of each post, though, not for any subsequent images in that post :/

esanumIT avatar Jul 09 '22 11:07 esanumIT