How to resize quickly a imgur image?

12

3

Is there any way to resize an imgur.com image using the query string when I use it on a forum?

This image is too big for some forum and it ruins the pagination.

incredibly huge image in a forum

Giulio Caccin

Posted 2017-08-07T18:37:56.967

Reputation: 272

2the image somehow really freak me out... – gagantous – 2017-11-21T14:42:15.970

Answers

22

You can specify the small version of the image by appending s to its base URL.

For example, the URL of your original image is https://i.stack.imgur.com/Brjd7.jpg.
By adding s this becomes https://i.stack.imgur.com/Brjd7s.jpg:

smaller image versionhttps://i.stack.imgur.com/Brjd7s.jpg

Some images may have an ultra-small version of the image, accessed by adding ss, thus making it https://i.stack.imgur.com/Brjd7ss.jpg, but your image does not have one.

Here is the list of all the modifiers for dimensions (not all are always available) :

  • s = Small Square (90×90) as seen in the example above
  • b = Big Square (160×160)
  • t = Small Thumbnail (160×160)
  • m = Medium Thumbnail (320×320)
  • l = Large Thumbnail (640×640)
  • h = Huge Thumbnail (1024×1024)

harrymc

Posted 2017-08-07T18:37:56.967

Reputation: 306 093

1

the answer hints at that, but it is the pixel area and proportions of the original image that determine which of the modifiers will be available. A very narrow but tall rectangular pic, for instance, might not produce a "s" version even if the original is high quality. Or it might produce urls where "m" (medium) is the same as "l" (large). The <img src="x" width="N" /> method (described in this answer) can produce a custom resize for these edge cases, but it's slower than just adding a modifier to a URL.

– init_js – 2018-10-19T07:48:54.783

3

It may depend on the type of encoding the forum uses.

On Stack Exchange you can use the line <img src="[url]" width="[nnn]"> to specify the size quite precisely.

eg
<img src="https://i.stack.imgur.com/Brjd7.jpg" width="123">

The advantage of this method is the full size image is available to anyone who needs to see it, by right-clicking & opening in a new tab.

Tetsujin

Posted 2017-08-07T18:37:56.967

Reputation: 22 456

This still loads the full size image – Janaka Bandara – 2020-03-01T02:11:57.800