Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloading Patreon's highest resolution images #2257

Closed
Fukitsu opened this issue Feb 2, 2022 · 6 comments
Closed

Downloading Patreon's highest resolution images #2257

Fukitsu opened this issue Feb 2, 2022 · 6 comments

Comments

@Fukitsu
Copy link

Fukitsu commented Feb 2, 2022

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?

@shinji257
Copy link
Contributor

Do you have an example of where this is happening?

@Fukitsu
Copy link
Author

Fukitsu commented Feb 2, 2022

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
Copy link
Author

Fukitsu commented Feb 2, 2022

@gcfvfhg
Copy link

gcfvfhg commented Feb 27, 2022

@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?

@Fukitsu
Copy link
Author

Fukitsu commented Feb 27, 2022

@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

mikf added a commit that referenced this issue Mar 8, 2022
to allow more control over when and if to download 'large_url' images

4fee3a0 forced them to be downloaded
instead of regular images, even though 'large_url' images are most likely
an upscaled version of the original.
@esanumIT
Copy link

esanumIT commented Jul 9, 2022

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

@mikf mikf closed this as completed Dec 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants