473,748 Members | 2,625 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 12409
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
4037
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
2218
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
2804
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
1282
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 Properties quicker, let me know too. Thanks, Patrick Johnson
3
45976
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 should be in the latter, huh?) I know I could use a hidden form element but the data would be a...
3
5718
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 and I then need to copy info from my non struts ap to fields of a form on my struts ap.
1
2240
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 collection (mostly JPG's) and store them into a database preferably access. I have currently...
1
1238
by: tyreejp | last post by:
can javascript access a file that has been posted to page via an HTTP POST?
6
2031
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. Works fine with firefox. I tried changing the browser setting like this : Tools>Internet Options>...
0
8832
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9381
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9332
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8252
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6799
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6078
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3316
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
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.