473,403 Members | 2,284 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

JPEG Comments

I have been told that there is no way to access the JPEG comment field
using javascript. I have used a hex editor and can see the comment near
the beginning of the JPEG file. Is there any way to access the source
of a JPEG picture that has been loaded and then possibly extract and
manipulate the data to extract the comment?

--
Dennis Marks
http://www.dcs-chico.com/~denmarks/
To reply change none to dcsi.
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 23 '05 #1
4 1994

"Dennis Marks" <de******@none.net> wrote in message
news:080520041017159233%de******@none.net...
I have been told that there is no way to access the JPEG comment field
using javascript. I have used a hex editor and can see the comment near
the beginning of the JPEG file. Is there any way to access the source
of a JPEG picture that has been loaded and then possibly extract and
manipulate the data to extract the comment?


Not using Javascript. Javascript only has access to the HTML dom tree, not
the actual binary data contained in the image.
Jul 23 '05 #2
Murray wrote on 08 mei 2004 in comp.lang.javascript:
"Dennis Marks" <de******@none.net> wrote in message
news:080520041017159233%de******@none.net...
I have been told that there is no way to access the JPEG comment
field using javascript. I have used a hex editor and can see the
comment near the beginning of the JPEG file. Is there any way to
access the source of a JPEG picture that has been loaded and then
possibly extract and manipulate the data to extract the comment?


Not using Javascript. Javascript only has access to the HTML dom tree,
not the actual binary data contained in the image.


Not quite true.

Serverside code, either js or vbs, has access.

Clientside code, either js or vbs, has NOT.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 23 '05 #3
In article <Xn********************@194.109.133.29>, Evertjan.
<ex**************@interxnl.net> wrote:
Murray wrote on 08 mei 2004 in comp.lang.javascript:
"Dennis Marks" <de******@none.net> wrote in message
news:080520041017159233%de******@none.net...
I have been told that there is no way to access the JPEG comment
field using javascript. I have used a hex editor and can see the
comment near the beginning of the JPEG file. Is there any way to
access the source of a JPEG picture that has been loaded and then
possibly extract and manipulate the data to extract the comment?


Not using Javascript. Javascript only has access to the HTML dom tree,
not the actual binary data contained in the image.


Not quite true.

Serverside code, either js or vbs, has access.

Clientside code, either js or vbs, has NOT.


Too bad. The comment would be a great place to keep descriptive data to
be displayed with a picture.

--
Dennis Marks
http://www.dcs-chico.com/~denmarks/
To reply change none to dcsi.
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 23 '05 #4
Dennis Marks wrote:
Too bad. The comment would be a great place to keep descriptive data
to be displayed with a picture.


There are a number of server-side image gallery applications which do
exactly this :)

--
Matt Kruse
Javascript Toolbox: http://www.mattkruse.com/javascript/
Jul 23 '05 #5

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

Similar topics

0
by: Markus Bulmer | last post by:
Hi, I'm trying to do a photo album with php. The admins should be able to write comments, descriptions etc. into the jpeg files via a web form. I tried to implement this with the (still...
1
by: Patrick | last post by:
Hello all! I am using a BufferedImage object to build an image from scratch. I want it to be a grayscale image with only 8bits of color. I have the color information as a byte, saved in variable...
1
by: Eugene Morozov | last post by:
Hello! Is it possible to manipulate JPEG comments using PIL? I didn't find corresponding methods in the PIL library. I just want to write yet another image viewer and editor (similar to gthumb...
5
by: news.west.cox.net | last post by:
I have a fairly simple Python program that uses Image and ImageDraw to create poll results on the fly. Because PIL only supports 256 colors for GIF and BMPs are huge (in comparison)... I have...
3
by: BluDog | last post by:
Hi I was wandering if anyone knew if it was possible to add custom EXIF tags (such as Photographer and Title) to a JPEG image, or to modify the existing tags (such as ImageDescription). There...
1
by: Brett_A | last post by:
I have the following code: ************************************* SavePath = Path & "\thumb_" & File.ExtractFileName ' AspJpeg always generates thumbnails in JPEG format. ' If the original...
2
by: =?Utf-8?B?bWNpbWFnaW5n?= | last post by:
Hi, Is there any way to get . TIF, JPEG,GIF compression format. Like i have couple of images saved in my hard drive . i want to get each of these images compression format. any comments on this...
4
by: Pacino | last post by:
Hi, everyone, I am wondering whether it's possible to read part (e.g. 1000*1000) of a huge jpeg file (e.g. 30000*30000) and save it to another jpeg file by pure python. I failed to read the...
11
by: Mark B | last post by:
I want to display a pre-designed graphical 'performance badge' on certain webpages (round, about 2cm diameter) next to a salesperson's details. I have a function,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
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...
0
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...

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.