Find out Bigger Images on this Site

By Jian Shuo Wang on 2007-05-22 20:51 · Backstage

I often get request to republish my article. Normally, I will give the permission for reprint. However, to send out the original image is a big headache to me.

Since most of my images are hosted on flickr, and I stored my original image on the server. You can get it on the server.

This is the method to find out the original location.

URL of image:

function find_bigger_image() {

var url = document.getElementById(‘url’).value;

url = url.replace(’_o.jpg’,’.jpg’);

url = url.replace(’_m.jpg’,’.jpg’);

url = url.replace(’_t.jpg’,’.jpg’);

url = url.replace(’_s.jpg’,’.jpg’);

var reg = //([0-9a-z])_(.).jpg/;

ar = reg.exec(url);

var imgid = ar[1];

var pane = document.getElementById(‘pane’);

pane.innerHTML += “This is the <a href=http://www.flickr.com/photo_zoom.gne?id=” + imgid + “&size=o>most possible location of the original image

”;

pane.innerHTML += “

Small Square

”;

pane.innerHTML += “

Tiny

”;

pane.innerHTML += “

Small

”;

pane.innerHTML += “

Middle-sized

”;

pane.innerHTML += “

Original

If the image above does not load, click <a href=http://www.flickr.com/photo_zoom.gne?id=” + imgid + “&size=o>here”;

}

1 Comments
hi jianshuo,

i'm sorry my english very poor!

but i very like your blogs!

and i walked all starbucks coffee in guangzhou last week!that was your suggest!

and pls welcome to check my blogs:http://pengyanhuang.blog.sohu.com/

thank you!

and best regards!

yanhuang peng
— yanhuang peng · 2007-05-24 15:42