473,573 Members | 5,087 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript to Access JPEG Metadata XMP, IPTC, EXIF

I'm trying display a popup on the mouseover of a jpeg image. I'm
thinking of trying to populate the popup with text obtained from the
image metadata. However, I haven't been able to find any information on
how to do this with javascript. Is there a way to access image metadata
with javascript.
Apr 22 '06 #1
1 12384
Reginald Johnson wrote:
I'm trying display a popup on the mouseover of a jpeg image.
I'm thinking of trying to populate the popup with text obtained
from the image metadata. However, I haven't been able to find
any information on how to do this with javascript. Is there a
way to access image metadata with javascript.


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. In principle it may be possible to use an XML HTTP
request object to load an image file and then extract the data from
the - responseText -, but having image data interpreted as utf-8 encoded
text and then trying to extract information from the resulting
javascript string is going to be horrendously difficult. Indeed, it
would be more practical to have a server-side resource extract the
information and package it in a form suitable for an XML HTTP request,
and then request the information indirectly.

But, if the information is to be extracted on the server it may as well
be extracted as part of the initial request and included in the page
that displays the images with the mouseover.

Richard.
Apr 23 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4027
by: Useko Netsumi | last post by:
Does anyone aware of any program/apps/scripts that has the ability to modify/add/create/delete metadata in any image type such as JPEG, GIF, PNG, etc. Question for the experts, is it wise to store information in the image file instead of the database? Thanks
0
2208
by: Tommy | last post by:
Hi. I try to use PEL (pel.sourceforge.net) to copy some exif information from orginial camera jpeg to resized copy with php gd library. But without success:( 1) File is uploaded to server with html upload form. 2) File is testes is it image/jpeg ?
2
2799
by: helmi03 | last post by:
does anyone know how to get/set jpg or other image types metadata using Python. I had search in vault of parnassus and PIL, but only can read the EXIF. Long live Python!
0
1270
by: Patrick Johnson | last post by:
I am trying to read the Keyword field of the metadata attached to a jpg file in C#. the closest I could find to reading this type of Info was using the Image object and itterating thru the Properties attached to the Image. I need to access these as well, but accessing thru the Image object is pretty slow, so if anyone knows how to access these...
3
45951
by: news.rcn.com | last post by:
How can I access the request and response object for a page using javascript. I want to stick some data on with something like request.setAttribute( "User's choice for later use" ). I can't seem to find a reference to request or response objects in JavaScript either in Google Groups or O'Reilly's "JavaScript the Definitive Guide" (surely it...
3
5712
by: PromoteDirect | last post by:
Newsgroups: comp.lang.javascript Subject: access denied when trying to pass data between jsps Date: Thu, 09 Mar 2006 10:42:01 -0800 I have two jsp applications. One written with struts and one without. My struts based application uses window.open to open the first page of my non-struts application, the user goes through a number of screens...
1
2227
by: toggy | last post by:
Hi all, I am a relative novice to programming and just finding my way around VB express. I do this just out of personal interest and struggle to find projects to code any learning i have achieved is my browsing the web and incorporating this into my programs. Anyway, what i currently want to do, is to extract the metadata from my photo...
1
1228
by: tyreejp | last post by:
can javascript access a file that has been posted to page via an HTTP POST?
6
2022
by: shishirkumar | last post by:
Hi, I have an HTML form with a browse button for file upload. If in the text I directly type the file name then: 1. If I type full path, e.g d:\abc.pdf, then hitting submit works fine. 2. If I type just the file name, e.g abc.pdf, then hitting submit hangs the browser. Javascript error says : Access denied. This problem is occuring in IE7....
0
7792
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8039
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7800
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8091
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5605
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3738
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3744
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2228
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1049
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.