gap-decoder / gapdecoder

Google Arts And Culture Downloader. Python script to download high-resolution images from google arts & culture.
81 stars 12 forks source link

User-input quality level, disable chroma subsampling #15

Closed kolt54321 closed 5 years ago

kolt54321 commented 5 years ago

Default PIL compression level is 75 for JPEG's, user can choose 0-95. The original tiles have 4:2:0 chroma subsampling, but re-subsampling is disabed here - JPEG recompression with the same quality level causes minimal loss, but chroma re-subsampling causes continuous loss of color. See: https://photo.stackexchange.com/a/99605/85194

lovasoa commented 5 years ago

Thank you very much, @kolt54321 !

lovasoa commented 5 years ago

If you want, I can add you to the gap-decoder organisation on GitHub.

kolt54321 commented 5 years ago

Sure! I would love that. Still learning here but I hope to try tackling embed metadata via BS4 web scraping if it's not beyond me.

lovasoa commented 5 years ago

I invited you. For metadata scraping, I don't think you need beautifulsoup. Most metadata is in json anyway, and you can extract the json payload with etree which is already in our dependencies.