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

Higher quality DeviantArt images #4846

Closed
Twi-Hard opened this issue Nov 25, 2023 · 5 comments
Closed

Higher quality DeviantArt images #4846

Twi-Hard opened this issue Nov 25, 2023 · 5 comments

Comments

@Twi-Hard
Copy link

Twi-Hard commented Nov 25, 2023

Non-downloadable images uploaded after April 2019 can be downloaded as PNGs if you manually replace the jpg with png in the url. There's definitely a difference between the 2 versions. Here's the difference between the PNG and JPEG for https://www.deviantart.com/kingkero/art/Commission-Secret-Squirrel-Admirer-801059022 using the compare command from imagemagick

difference

JPEG: https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/66db0640-a284-40dd-8587-7ea23d755081/dd8xh3i-1ec5b8ca-3740-4d84-86b5-31ad71f2391c.png/v1/fill/w_1024,h_732,q_100,strp/_commission__secret_squirrel_admirer_by_kingkero_dd8xh3i-fullview.jpg?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7ImhlaWdodCI6Ijw9NzMyIiwicGF0aCI6IlwvZlwvNjZkYjA2NDAtYTI4NC00MGRkLTg1ODctN2VhMjNkNzU1MDgxXC9kZDh4aDNpLTFlYzViOGNhLTM3NDAtNGQ4NC04NmI1LTMxYWQ3MWYyMzkxYy5wbmciLCJ3aWR0aCI6Ijw9MTAyNCJ9XV0sImF1ZCI6WyJ1cm46c2VydmljZTppbWFnZS5vcGVyYXRpb25zIl19.Dhb23DLkdEz0JswMAOm2tzV1XjDZsHarmGywhugJ8_Q

PNG: https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/66db0640-a284-40dd-8587-7ea23d755081/dd8xh3i-1ec5b8ca-3740-4d84-86b5-31ad71f2391c.png/v1/fill/w_1024,h_732,q_100,strp/_commission__secret_squirrel_admirer_by_kingkero_dd8xh3i-fullview.png?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7ImhlaWdodCI6Ijw9NzMyIiwicGF0aCI6IlwvZlwvNjZkYjA2NDAtYTI4NC00MGRkLTg1ODctN2VhMjNkNzU1MDgxXC9kZDh4aDNpLTFlYzViOGNhLTM3NDAtNGQ4NC04NmI1LTMxYWQ3MWYyMzkxYy5wbmciLCJ3aWR0aCI6Ijw9MTAyNCJ9XV0sImF1ZCI6WyJ1cm46c2VydmljZTppbWFnZS5vcGVyYXRpb25zIl19.Dhb23DLkdEz0JswMAOm2tzV1XjDZsHarmGywhugJ8_Q

@Twi-Hard
Copy link
Author

I was wondering if this is planned? I don't mean to pester or pressure or anything.. it's just I haven't been downloading because I know if it ever gets fixed I would have to download everything again anyways.

mikf added a commit that referenced this issue Feb 14, 2024
@mikf
Copy link
Owner

mikf commented Feb 14, 2024

Sorry this took me so long to get to. Got somewhat burned out on everything DeviantArt, then I forgot this issue even existed, then I was sick for over a week ... excuses, excuses, I know.

Anyway, I added a png option which replaces .jpg with .png for non-downloadable non-intermediary images and this appears to work for every image.

It's just that the intermediary transform takes priority over everything before April 2019 (ID 790677560), but you can get a .png when you disable the intermediary option.

Same for is_downloadable files. Disable original and you get a .png with the same pixel information as the downloadable file as long as the resolution for these two versions is the same. It works for example here.

edit: I might combine this option with quality, since the quality value doesn't appear to make a difference for these .png files. "quality": "png".

mikf added a commit that referenced this issue Feb 15, 2024
"quality": "png" to download PNGs instead og JPEGs
@mikf
Copy link
Owner

mikf commented Feb 15, 2024

As I hinted at earlier, this feature is now enabled by setting quality to "png" (04e4ffc).

@mikf mikf closed this as completed Feb 15, 2024
@Hrxn
Copy link
Contributor

Hrxn commented Feb 16, 2024

For the "non PNG" case (an original file download is available), what setting for "quality" is used if we set it to "png"? 100?

@mikf
Copy link
Owner

mikf commented Feb 16, 2024

quality didn't have an effect on original (or "intermediary") images to begin with, so whatever the uploader set it to, I guess.

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

3 participants