0

This is an image at large size:

Image

It doesn't look large, but I can assure you it is, because it's under this URL: https://i.sstatic.net/0Vajul.jpg

This is the same image again, but an added 's' before '.jpg' to make it smaller (in appose to an added 'l':

Same Image

Adding 's' to the second occurrence makes both of them small, even though the first one has a 'l'. Why is this so?

4
  • Thanks, now I want to eat pizza.
    – user1228
    Commented Feb 13, 2014 at 21:11
  • C'mon guys, don't downvote PEBKAC support questions.
    – Charles
    Commented Feb 13, 2014 at 21:12
  • 2
    @Charles Oh, yeah, PEBKAC, I definitely know what that is. Well, I hope that this PEBKAC issue gets fixed.
    – Cilan
    Commented Feb 14, 2014 at 0:12
  • @Charles: This wasn't tagged as support, though, even if it probably should've been. Commented Feb 14, 2014 at 20:07

1 Answer 1

12

You're overwriting the URL for the image:

![Image][1]

  [1]: https://i.sstatic.net/0Vajul.jpg

![Same Image][1]

  [1]: https://i.sstatic.net/0Vajus.jpg

Yes, you're writing a different URL the first time, but the second time you're defining a new URL to the identifier you used previously. Identifiers are all removed before Markdown starts getting processed, so 1 will end up being defined as whatever URL is set to it last, and then when it starts processing the images will be substituted in as that value. What you want to do is this:

![Image][1]

  [1]: https://i.sstatic.net/0Vajul.jpg

![Same Image][2]

  [2]: https://i.sstatic.net/0Vajus.jpg

Renders as:

Image

Same Image

2
  • Beat me to it. +1. Cheers.
    – Anil
    Commented Feb 13, 2014 at 20:50
  • Oh, of course :)
    – Cilan
    Commented Feb 13, 2014 at 20:50

You must log in to answer this question.

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