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

gallery-dl not fetching full res images from artstation #1422

Closed
Twi-Hard opened this issue Apr 2, 2021 · 3 comments
Closed

gallery-dl not fetching full res images from artstation #1422

Twi-Hard opened this issue Apr 2, 2021 · 3 comments

Comments

@Twi-Hard
Copy link

Twi-Hard commented Apr 2, 2021

The metadata for most images I check list a much higher width and height than what was downloaded.
Here's an example:
https://www.artstation.com/artwork/ZrP4X
https://cdna.artstation.com/p/assets/images/images/010/595/554/large/holivi-enfunzya-.jpg (an image URL from the post linked above)
After some testing it seems replacing "/large/" with "/4k/" gives a much higher res image (I'm not sure if it's always the original or not).
Out of the images I checked, only gifs can have "/original/" in the URL. Every other image 404s when I try to replace "/large/" with "/original/".
Example gif:
https://www.artstation.com/artwork/3zPJY
https://cdna.artstation.com/p/assets/images/images/007/783/838/original/juan-cardenas-party-cannon-1080x1080.gif

In this help page (https://help.artstation.com/hc/en-us/articles/360056654272-How-do-I-get-the-best-quality-of-images-on-ArtStation-) it says it shows you the 4k versions instead of the resized versions if you use a 4k display.
"ArtStation will convert images to JPG at 90% quality at 1920 width. However, if you have a 4K monitor, we will send the image in 4K if it is available."

mikf added a commit that referenced this issue Apr 7, 2021
@mikf
Copy link
Owner

mikf commented Apr 7, 2021

Fixed in 52a7913, I hope.

images now use /4k/ with fallback URLs to /large/, /medium/, and /small/. GIFs like https://www.artstation.com/artwork/3zPJY already used /original/ without needing to change anything.

Every other image 404s when I try to replace "/large/" with "/original/".

They return a "403 Forbidden", meaning they do exist, but I'd guess nobody except the uploader is allowed to download them.

@mikf mikf closed this as completed Apr 7, 2021
@Hrxn
Copy link
Contributor

Hrxn commented Apr 7, 2021

Good catch, but does anyone know if this has been a somewhat recent change?
Apparently, the 4k image option has been around for a while, but I'm not sure what the actual intention of the site is here.
I mean, just for example, this artwork link: https://www.artstation.com/artwork/R3dNAA

It has this little 4k overlay icon at the bottom, with the hover message of Pro and Plus members can display assets in 4K

But if I open the image (the "bracket" icon, to the right of the downward-download-arrow-icon), I'll get this here in a new tab;
https://cdnb.artstation.com/p/assets/images/images/036/493/845/4k/aleksandr-nikonov-exploring.jpg?1617817892

So, a /4k/ URL, and the image indeed has the dimension of 3840*2604px.. if I recall correctly, ArtStation did not have such large images in the past.

And this specific artwork is not an outlier, lots of other entries exhibit the same behavior.

@mikf
Copy link
Owner

mikf commented Apr 8, 2021

Danbooru uses /4k/ since March 2020 (danbooru/danbooru@266e405), so this existed for at least a year.

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