Downloading Patreon images seems to yield a smaller file size than if I download it myself #6569
-
These are from the same post; the top one is when I save the image myself directly from Patreon and the below is if I download it via gallery-dl. The resolution and file type are the same but gallery-dl seems to grab a file with reduced file size, so I'm not confident that I'm getting the exact same file from gallery-dl as if I were saving it manually from Patreon. Are there configurations or otherwise that I'm missing out on here? Could not seem to find a relevant issue or discussion to this. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
The |
Beta Was this translation helpful? Give feedback.
-
I did a bit of investigating and found that Patreon image URLs contain a segment that has base64-encoded "quality" options. For the big image files labeled by the API as
For the smaller files downloaded by gallery-dl labeled
The pixel value information of both versions is identical for PNG files, but there is a difference for JPEGs. I am not sure if the Changing these "quality" options is not possible, as that invalidates the |
Beta Was this translation helpful? Give feedback.
I did a bit of investigating and found that Patreon image URLs contain a segment that has base64-encoded "quality" options.
For the big image files labeled by the API as
"original"
under"image_urls"
, it is{"q":100,"webp":0}
(/eyJxIjoxMDAsIndlYnAiOjB9/
)For the smaller files downloaded by gallery-dl labeled
"download_url"
, it is{"a":1,"p":1}
(/eyJhIjoxLCJwIjoxfQ%3D%3D/
)