@tataglora,
When I hit https://api.twitter.com/1.1/help/configuration.json, I’m seeing:
"photo_size_limit": 3145728,
"photo_sizes": {
"thumb": {
"h": 150,
"resize": "crop",
"w": 150
},
"small": {
"h": 480,
"resize": "fit",
"w": 340
},
"medium": {
"h": 1200,
"resize": "fit",
"w": 600
},
"large": {
"h": 2048,
"resize": "fit",
"w": 1024
}
}
The way the dimension limits are worded seems to suggest they represent the max dimensions returned for the various thumbnail sizes rather than a limit on the uploaded media itself, but the documentation is vague.
That said, I encountered the same issue (API rejection, and ‘Internal Server Error’ when uploading natively) for image sizes (PNG, in case it matters) starting at 4097px width or height.
The fact that the images fail when uploading natively suggest that this has nothing to do with the fact that the method is deprecated. The same method works perfectly fine for smaller images.
I think there’s a bug in the exception returned. Or is there not supposed to be a dimension limit?