A user noticed when uploading a picture to twitter that my client was stretching the image.
Looking at the raw json for the tweet
https://api.twitter.com/1.1/statuses/show/326589998084280321.json
{
...
"entities": {
...
"media": [
{
"id": 326589998088474600,
"id_str": "326589998088474626",
"indices": [
6,
28
],
"media_url": "http://pbs.twimg.com/media/BIhH33dCUAIL4MR.png",
"media_url_https": "https://pbs.twimg.com/media/BIhH33dCUAIL4MR.png",
"url": "http://t.co/EBKuy4ckuE",
"display_url": "pic.twitter.com/EBKuy4ckuE",
"expanded_url": "http://twitter.com/skoena/status/326589998084280321/photo/1",
"type": "photo",
"sizes": {
"medium": {
"w": 472,
"h": 141,
"resize": "fit"
},
"small": {
"w": 340,
"h": 102,
"resize": "fit"
},
"large": {
"w": 472,
"h": 141,
"resize": "fit"
},
"thumb": {
"w": 150,
"h": 141,
"resize": "crop"
}
}
}
]
},
...
}
the height for thumb is too large, opening http://pbs.twimg.com/media/BIhH33dCUAIL4MR.png:thumb shows a 150x44 image
I assume it’s bugging because the height of the original is 141 which is less than 150?