Pro Twitter Tip

Posted under General

For anyone grabbing art off of twitter, for example: https://x.com/AkaharuArt/status/1893164611882623203/photo/1
DON'T USE THE APP IF YOU'RE ON A PHONE! - Use the browser to get to the URL

Open the post, click on the image and then right click/long press to open the image in another tab.

You'll get a URL like this: https://pbs.twimg.com/media/GkXdLviW8AAOrYi?format=jpg&name=4096x4096

See the format=jpg part? change jpg into png to get a higher quality image.

The name=4096x4096 can also be name=large, it's the same file. However it can also be name=medium which is a lower quality image.

To get the best possible image off twitter, make sure the URL of the image you opened in another tab has either:
?format=png&name=4096x4096
or
?format=png&name=large
or
?format=png&name=orig - Mentioned by AngryZepdos, works perfectly

Happy hunting!

de-clickbaited the title - Shinjidude

Updated by a moderator

There are many more websites that also have a similar URL setup, you can manipulate the URL to get a higher quality image.

Reddit for example, if you open an image into a new tab after clicking it open, it'll say something like preview.redd.it. Replace preview with just the letter i, and you'll have the highest quality image in whatever format it was originally uploaded in. --> i.redd.it

Wouldn’t you use name=orig instead of name=large for Twitter images?

Either way, Danbooru can pull the highest quality version from the tweet URL, so this shouldn’t be necessary most of the time.

And don’t put random emojis in the thread title. I’m giving you the benefit of the doubt and assuming you’re genuinely trying to help, but stuff like this makes it look like you’re posting spam.

ANON_TOKYO said:

For Twitter you should just paste the URL into the box on the upload page. Danbooru also already automatically converts Twitter (and many other supported) samples to their full versions.

Gotcha. I'm not an uploader myself so I was hoping some uploaders could see this. I prefer the png format since jpg can have very unnoticeable artifacts but I guess I'm kinda anal about that.
Thanks for letting me know 🙌

Blank_User said:

Wouldn’t you use name=orig instead of name=large for Twitter images?

Either way, Danbooru can pull the highest quality version from the tweet URL, so this shouldn’t be necessary most of the time.

And don’t put random emojis in the thread title. I’m giving you the benefit of the doubt and assuming you’re genuinely trying to help, but stuff like this makes it look like you’re posting spam.

Emojis make it more eye-catching no? That was the original intention at least, my apologies if it gave off a spammy vibe 😅

DB69420J said:

Gotcha. I'm not an uploader myself so I was hoping some uploaders could see this. I prefer the png format since jpg can have very unnoticeable artifacts but I guess I'm kinda anal about that.
Thanks for letting me know 🙌

Danbooru is too, that's why it's automated, to prevent user error (tbh the upload page should be remodeled to look like uploading from URLs is the default).

AngryZapdos said:

Just replace name=xxx with name=orig and it works every time. But it's as ANON says; lots of sites are supported already.

Just tried that, it worked just as well as the other links, since it's shorter imma use that then. Thanks for the tip!

DB69420J said:

You'll get a URL like this: https://pbs.twimg.com/media/GkXdLviW8AAOrYi?format=jpg&name=4096x4096

See the format=jpg part? change jpg into png to get a higher quality image.

Happy hunting!

For this image format=png just returns a lossy-lossless version, no quality difference. In most cases twitter sample URLs already have the right format so the only parameter that needs to be changed is name. But yeah, pasting the post URL on the upload page is the safest option for supported sites.

ANON_TOKYO said:

Danbooru is too, that's why it's automated, to prevent user error (tbh the upload page should be remodeled to look like uploading from URLs is the default).

Makes sense, not surprising for an image website to be particular about image quality 😅

ehh said:

For this image format=png just returns a lossy-lossless version, no quality difference. In most cases twitter sample URLs already have the right format so the only parameter that needs to be changed is name. But yeah, pasting the post URL on the upload page is the safest option for supported sites.

Ah, I didn't know that, my bad. Thanks for letting me know.

sinfulporcupine said:

even though twitter is supported by danbooru, for uploaders it may still be worthwhile information, as we often experience temporary outages of specific sites, twitter included

Hopefully this post'll help even non-uploaders just downloading stuff off of twitter in general too. Y'all have this stuff figured out already which should've been obvious in hindsight. Thanks for enlightening me fellas.

sinfulporcupine said:

even though twitter is supported by danbooru, for uploaders it may still be worthwhile information, as we often experience temporary outages of specific sites, twitter included

Danbooru still rewrites the name= part to the optimal version (same with other sites that operate similarly).

You do not need to use the official X app on your phone, Squawker will download full images by default. Additionally, for direct messages you will want to be in a PC web browser viewing your DMs, copy the image URL and then open the inspect panel and add an <img> tag appropriately modified with :orig to put the full image in your browser to save, or at least the largest resolution version X allows.

1