Dynamically get image URL from Imgur page link
- by Jleagle
I am trying to put some images on my website that are hosted on Imgur but i only have the link to the Imgur page, not the actual image URL.
For example, on this album the URL I am trying to get is this: http://i.imgur.com/csb9Q.jpg (I only need the first image)
I have noticed that when the page only has one image, the image file name is the same as the URL address, for example: http://imgur.com/sYlGa & http://i.imgur.com/sYlGa.jpg So this isnt a problem.
But for pages with multiple images, this is not the case so how can i get the image URL?