View Full Version : Using JavaScript to extract EXIF data.

04-11-2005, 07:22 PM
Hi. I'm planning to make photogallery to my home page. I'm pretty new to html, Javascript an such.
What I'd like to do is extract the EXIF data from my jpeg images. I searched the forum and found something, but it really didn't help me much. I have also searched from Google and have found that this is harder than it should be - how hard can it be to locate some strings from a file. Maybe the hidden data isn't well standardized yet...
I can't use php or any other server side programming language (my server doesn't provide any support for these), so I have to use Javascript or some other client side method. I can't see why this couldn't be done on the client side.

Can you help me with this? I'd really appreciate it and I believe there are many others that might use this feature as well on their sites. If this works out, this thread could be made to a How-To article about the issue.

Thank you.


04-12-2005, 05:29 AM
JS can't handle that type of data...

04-12-2005, 05:40 AM
i agree with codegoboom on this one... plus, if i were you, i would move to a different host if they don't support php and such...

04-12-2005, 02:42 PM
My server is provided with my internet connection and is therefore free. I'd like to have php support of course, nut I'd have to pay extra.

Could somebody explain why it has been made impossible to read such files with javascript. In principle I don't see why this couldn't be done - this should be the easiest things to do.
What about if use java instead of javascript?

Does anyone have link about standards digital cameras use to hide data to jpeg files?



04-12-2005, 11:06 PM
The answer is: just because... image/file manipulation is beyond the scope of JS. Automation is not. However, it is generally impractical, due to client security restrictions (an example of one such interface: Windows Image Acquisition Automation Layer (http://msdn.microsoft.com/library/en-us/wiaaut/wia/wiax/overviews/startpagewiaaut.asp)).