Skip to content

Downloading Patreon images seems to yield a smaller file size than if I download it myself #6569

Closed Answered by mikf
colbert2677 asked this question in Q&A
Discussion options

You must be logged in to vote

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/)

https://c10.patreonusercontent.com/4/patreon-media/p/post/12497641/3d99f5f5b635428ca237fedf0f223f1a/eyJxIjoxMDAsIndlYnAiOjB9/1.JPG?token-time=1734307200&token-hash=lEeSOpQzapNPL_1Iy0CQnUo1nRGmVigb62yyWxX898U%3D

For the smaller files downloaded by gallery-dl labeled "download_url", it is
{"a":1,"p":1} (/eyJhIjoxLCJwIjoxfQ%3D%3D/)

https://c10.patreonusercontent.com/4/patreon-media/p/post/12497641/3d99f5f5b635428ca237fedf0f223f1a/eyJhIjoxLC…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@colbert2677
Comment options

Comment options

You must be logged in to vote
3 replies
@colbert2677
Comment options

@mikf
Comment options

mikf Dec 2, 2024
Maintainer

@mikf
Comment options

mikf Dec 5, 2024
Maintainer

Answer selected by colbert2677
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants