Tell me more ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

There's a rather large image in a Stack Overflow post that I'd like to replace with its thumbnail and a link to the full-size image.

I know Imgur generates thumbnails for its images when you upload, but since I'm not the original uploader, is there any way for me to find the thumbnail image by URL hackery or some such?

share|improve this question

1 Answer

up vote 15 down vote accepted

I can't actually find it documented anywhere, but I uploaded an image and played with the "More Sizes" list:

Original

http://i.stack.imgur.com/YdJZt.jpg

I haven't included the image inline, because StackExchange would automatically scale it down. To view the original at its full size, click the link.

Large thumbnail

http://i.stack.imgur.com/YdJZtl.jpg (added an l after the image ID)

Small square

http://i.stack.imgur.com/YdJZts.jpg (added an s after the image ID)


It doesn't always handle transparency well, but "small square" is probably what you want.

Image by digitalART2, licensed under CC-BY-2.0, available here.

share|improve this answer
2  
Here's the API documentation - the ones listed above are all the available image sizes: api.imgur.com/resources_anon#image_hash – Ciaran Jun 10 '11 at 7:01
2  
@Ciaran: All the documented ones. There are -h, -m and -b too. – himself Jul 6 '11 at 11:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.