joealcorn / TweetPoster

a reddit bot
http://www.reddit.com/u/TweetPoster
MIT License
54 stars 13 forks source link

The linked Twitter picture is lower quality than the Imgur mirror #18

Open noodle- opened 9 years ago

noodle- commented 9 years ago

When posting a tweet the pic.twitter.com link directs to the low quality version of the picture while the Imgur link mirrors the HQ version.

Example: https://www.reddit.com/r/GlobalOffensive/comments/3hu31y/2guys1mic/cuaixme

Linked image: https://pbs.twimg.com/media/CM7YcS0WwAA-str.jpg Instead of: https://pbs.twimg.com/media/CM7YcS0WwAA-str.jpg:large

This might be intentional behaviour but I don't really see why.

joealcorn commented 9 years ago

This is just happening because the twitter api is returning the small image, we explicitly add :large when rehosting it. Might be worth doing it for the original image as well.