Author |
Topic  |
|
MarcelG
Retired Support Moderator
    
Netherlands
2625 Posts |
Posted - 04 January 2008 : 03:48:27
|
I'm looking for a method to retrieve and display certain EXIF information of a (remote) photo in HTML, below or beside that same picture. I don't want the webserver to have to retrieve the picture entirely (to preserve bandwidth), and preferably I want the client to do it themselves (using clientside javascript for example).
Does anyone just coincidentally happen to know how to achieve this?
I imagine it to work like this:
<img src="http://othersite.com/image.jpg">
<a href="#" onclick="getExif(http://othersite.com/image.jpg)">show exif info</a> with this as a result (before clicked)
show exif. and this after being clicked:
ISO200, f2.8, 1/60th, 35mm, Pentax K100D, Sigma 17-70 2.8-4.5 DX
|
portfolio - linkshrinker - oxle - twitter |
Edited by - MarcelG on 04 January 2008 03:57:26 |
|
HuwR
Forum Admin
    
United Kingdom
20587 Posts |
Posted - 04 January 2008 : 05:17:02
|
Client-side javascript cannot do that as the browser object models do not expose the data contained in image files loaded into Image objects or IMG elements. |
 |
|
MarcelG
Retired Support Moderator
    
Netherlands
2625 Posts |
Posted - 04 January 2008 : 06:42:41
|
Grmbl....I reckoned that too already, but I did however find a fully client-side javascript based FireFox plugin that does the trick : http://ted.mielczarek.org/code/mozilla/fxif I've mailed the author of that plugin if he thinks it could be turned in to a webified javascript.
An other method would be to perform a serverside http-request to the image, retrieving only the EXIF info from the target URL, but the solutions I found for that are all perl and python....e.g. jibberish to me. 
|
portfolio - linkshrinker - oxle - twitter |
 |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
|
HuwR
Forum Admin
    
United Kingdom
20587 Posts |
Posted - 04 January 2008 : 07:39:26
|
quote: Python isn't that bad. If you can understand Javascript you should have no problem
agreed, Python is a fairly easy scripting language to get to grips with. |
 |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
|
HuwR
Forum Admin
    
United Kingdom
20587 Posts |
Posted - 04 January 2008 : 09:51:41
|
I think you may still run into issues trying to read the exif data from a remote rather than a local file |
 |
|
MarcelG
Retired Support Moderator
    
Netherlands
2625 Posts |
Posted - 04 January 2008 : 10:25:12
|
Podge, I saw that one too, but the problem is that I want to integrate it with the forum, so show the exif info in the post, next to the image. |
portfolio - linkshrinker - oxle - twitter |
 |
|
HuwR
Forum Admin
    
United Kingdom
20587 Posts |
Posted - 04 January 2008 : 10:38:12
|
you could still use php to do that as you could drop it into an iframe. |
 |
|
pdrg
Support Moderator
    
United Kingdom
2897 Posts |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
|
MarcelG
Retired Support Moderator
    
Netherlands
2625 Posts |
Posted - 04 January 2008 : 14:56:00
|
quote: Originally posted by HuwR
you could still use php to do that as you could drop it into an iframe.
Realized that exact same thing when driving home! An iframe in a DIV, hovering over the content, loading the EXIF data via my other site (storage.oxle.com, which has GD and EXIF components, plus PHP installed). I'll start working on that.
Podge, I've been reading it with interest, and it looks promising...but I know way too little about .NET to understand it...sorry. |
portfolio - linkshrinker - oxle - twitter |
 |
|
|
Topic  |
|