Suppose I inserted this image:

Is there a way to make this image smaller by using LaTeX code?

  • 5
    $\begingroup$ Related: Rescaling images after posting. (I would even dare to say that the two post can be considered duplicate. Although I am not sure which of them should be closed as a duplicate target. Or would it be better to merge the two questions?) $\endgroup$ Commented Oct 12, 2015 at 8:13
  • $\begingroup$ Merging seems better to me @MartinSleziak. $\endgroup$ Commented Oct 12, 2015 at 8:21

2 Answers 2


Use the following syntax (where the height is in pixels, you can of course customize it):

<img src="https://i.sstatic.net/HfpSm.png" height="123">

to get:

You can also change the width, or both the height and the width (if you don't mind changing the aspect ratio):

<img src="https://i.sstatic.net/HfpSm.png" width="100" height="200">


Imgur automatically creates several different sized for images, you can get them by appending s, t, m or l to the filename (before the extension).

See the following examples:






Not the answer you're looking for? Browse other questions tagged .