I found a script that can upload image to postimage.org using curl. It was posted not long ago, on 2013-09-06, at http://crunchbang.org/forums/viewtopic.php?id=28867. The simplified script looks like this:
curl -Ls -F "upload=@$1" -F "adult=no" http://postimage.org/ | grep -Po 'id="code_1".+\Khttp[^<]+'
However, when I tried it, it doesn't work any more. I believe it was working when it was posted not long ago, anyone knows how to get it working again please?
Having accepted the answer, I found myself just can't do another successful upload any more:
I.e., regardless what I tried, I always end up with the above weird image, which is not mine, with wrong image size and wrong image type/extension.
But in fact, the image I was trying to upload is
So I conclude that there is still something wrong with postimage.org, it's so screwed up that I'll not waste any more of my time on it.
Hm, heck, just want to have a proper conclusion -- I tried to manually upload it via my browser but get exactly the same thing:
So, conclusion, the curl upload is working as expected, only the postimage.org site is screwed. Case closed.