Pumapeople: Exif Data From Images - Pumapeople

Jump to content

TPF

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Exif Data From Images

#1 User is offline   sky 

  • Group: Members
  • Posts: 3711
  • Joined: 10-February 03
  • Location:Barry, South Wales

Posted 21 April 2007 - 10:24 PM

Post I made a while back on thephotographyforum.co.uk :

Ok... so tons of people as about images, how they were done, what camera, what settings were used, yada yada.... Most of this information is available from the EXIF data of the image itself (9 time of out of 10!)

There's a great website you can use to extract this information from ANY image on the internet. Here's how:

1. Copy all of the text in the "code" snippet below to the clipboard:

CODE
java script:var form=document.createElement(%22form%22);form.action=%22http:%22+%22//regex%22+%22.info/exif.cgi%22;form.method=%22get%22;form.target=%22exif%22;var O=document.createElement(%22input%22);O.type=%22hidden%22;O.name=%22b%22;O.value=3;form.appendChild(O);O=document.createElement(%22input%22);O.type=%22hidden%22;O.name=%22referer%22;O.value=document.location;form.appendChild(O);O=null;function f1(obj){if(obj.links.length>0){var R=/.(jpe?g|nef|raw|tiff)$/i;var count=0;var url;for(i=0;i<obj.links.length;i++){if(R.test(obj.links[i].href)){count++;url=obj.links[i].href}}if(count==1){var O=document.createElement(%22input%22);O.type=%22hidden%22;O.name=%22url%22;O.value=url;return O;}}return null;}function f2(obj){if(obj.images.length==1){var O=obj.createElement(%22input%22);O.type=%22hidden%22;O.name=%22url%22;O.value=obj.images[0].src;return O;}return null;}function f3(obj){if(obj.images.length>=1){var img;var max=0;for(i=0;i<obj.images.length;i++){size=obj.images[i].width*obj.images[i].height;if(size>max){max=size;img=obj.images[i];}}return img;}return null;}function f4(obj){var img=f3(obj);if(img){O=obj.createElement(%22input%22);O.type=%22hidden%22;O.name=%22url%22;O.value=img.src;return O;}return null;}function f5(FRAMES){for(var fr=0;O==null&&fr<FRAMES.length;fr++){try{var O=f1(FRAMES[fr].document);if(O)return O;}catch(er){}}var max=0;var img;for(var fr=0;O==null&&fr<FRAMES.length;fr++){try{var I=_exif_get_largetst_image(FRAMES.document);if(I&&I.width*I.height>max){img=I;max=I.width*I.height;}}catch(er){}if(img){O=obj.createElement(%22input%22);O.type=%22hidden%22;O.name=%22url%22;O.value=img.src;return O;}}return null}var O=f1(document);if(!O)O=f2(document);if(!O)O=f4(document);if(!O)O=f5(frames);if(O){form.appendChild(O);document.body.appendChild(form);form.submit();}else{alert(%22Sorry,I could not find out an image to report on%22);}


2. In your favourite web browser, start the process of saving a favourite website address. Firefox users: Bookmarks->Manage bookmarks->New bookmark

3. Label the link "Exif"

4. In the web address box, paste the code from above.

5. Click the relevant buttons to finish the process

6. View your favourites list then drag the newly created entry to the links toolbar of your browser for easy access.

Then...if you want to view the exif data, get the image by itself in a new window (within Firefox I right mouse click on the image and choose "View Image") then click your Exif button. A new browser will open, and you'll have more info on that image than you care to shake a stick at.

However, be aware that some images, especially those created by forum galleries (that resize images on the fly) will have NO exif data... Can't win them all, eh?
Jason Aspinall, Original site creator, since '98
http://www.chilledatthebottom.com
http://www.chilled35.com
Mmm, clicky :)

#2 User is offline   mikey2cv 

  • View gallery
  • Group: Members
  • Posts: 2165
  • Joined: 27-July 05
  • Location:Cumbria

Posted 22 April 2007 - 10:11 AM

Nice idea, Jason. But all I get when clicking the Exif button is a message saying "The URL is not valid and cannot be loaded".
I have checked that Java script is enabled, but that's about as far as my knowledge goes! Any ideas?
Mike

My photos

Add Mikey2cv to your Flikr contacts and I will send you an invite to join the Pumapeople friends group.

#3 Guest_Tiggr_*


  • Group: Guests

Posted 22 April 2007 - 10:29 AM

I get

Bad Request
Your client has issued a malformed or illegal request.

#4 User is offline   sky 

  • Group: Members
  • Posts: 3711
  • Joined: 10-February 03
  • Location:Barry, South Wales

Posted 22 April 2007 - 02:34 PM

Both double check you've copied and pasted that javascript in its entirity - it works absolutely fine in both Firefox and Internet Explorer...

Failing that, visit this site: http://regex.info/exif.cgi

and follow the destructions in the pink box top right...
Jason Aspinall, Original site creator, since '98
http://www.chilledatthebottom.com
http://www.chilled35.com
Mmm, clicky :)

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic