Thumbnail image on Stack Overflow

by user155454   Last Updated January 14, 2018 06:24 AM

How can you thumbnail an uploaded image on Stack Overflow?

Answers 3

Images embedded in your post are already displayed to be 640 pixels wide on the regular site, or 90% on the mobile site, to fit the page layout. If that's not enough, or if you want to reduce the download file size too, you have a couple options:

  • Use the HTML syntax for embedding images, which allows for height and width parameters. The scaling is done by the browser, and the whole image is still downloaded.
  • Create the thumbnail yourself using the image manipulation tool of your choice.
  • Invoke imgur's black magic to create the thumbnails for you.

imgur's thumbnail feature

If you uploaded your image via the editor's upload function, you can let imgur do the work for you. (If they reside on your own imgur account, this will still work, but you really should use the branded upload.)

You do this by appending a special suffix to the image code.

Consider this cat. It is too big to fit the page, and its URL is With the thumbnail feature, we can do this:


  • The square options s and b will force the image to be a square of that exact size, downscaling/upscaling and cropping it in the process if necessary.

  • The thumbnail options won't have any effect if the image is already within the maximum dimensions. They also respect image proportions and won't crop your image.

a cat
a cat
October 09, 2011 11:08 AM

There now is a script that aids you in creating thumbnails:

Thumbnail Uploader

It adds an improved "upload" dialog:

enter link description here

The large/medium/small options use the imgur hacks described above. The height/width creates an HTML image tag (leaving one blank locks aspect ratio).

And, of course, there's a "link to full size" option for thumbnailing.

June 30, 2012 12:41 PM

In order to resize image,Use the below website link

Best Regards, Satish

satish hiremath
satish hiremath
January 14, 2018 06:23 AM

Related Questions

Why Pinterest images' definition are highest

Updated October 23, 2017 15:24 PM

Are my images not centered?

Updated December 26, 2017 12:24 PM

I can type with the image inserter open

Updated July 13, 2015 13:10 PM