Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - How can you change the comments property of a jpg

Reply
 
Old 11-15-2008   #1 (permalink)
ThatsIT.net.au


 
 

How can you change the comments property of a jpg

I want to change the comments property of a jpg
any ideas

My System SpecsSystem Spec
Old 11-15-2008   #2 (permalink)
mayayana


 
 

Re: How can you change the comments property of a jpg

> I want to change the comments property of a jpg
Quote:

> any ideas
There are actually a number of JPG comments.
There are the EXIF tags, which are identified numerically
and stored in the JPG file header. Most of the EXIF tags
are concerned with camera info. Then there are also IPTC
tags. IPTC is an entirely different system of tags established
by the Newspaper Association of America (NAA) and the
International Press Telecommunications Council (IPTC).
IPTC tags were meant to be used by journalists to save
info. like copyright, photographer name, image description, etc.

All of that is optional, stored in the JPG file header
if present.

If you're thinking of the comments in the Properties
window on WinXP, that's actually a particular, custom
EXIF tag that Microsoft uses. MS uses a single EXIF tag
for their properties, which are stored as unicode. (Unlike
all other EXIF tags, which are stored as ansii strings.)
Microsoft (or at least WinXP) does not recognize IPTC
tags. If you save properties via Windows it will corrupt
and/or erase any existing IPTC tags in the file header.

As for writing the comments, that might be tricky to
do programmatically. There are components available, but
I don't know if there's anything free that will do it.

You could also see this link:

www.jsware.net/jsware/scripts.php5#jpginf

The download is a script that uses only basic VBS and
Textstream methods to read IPTC and EXIF tags from
a JPG file header, and to extract the thumbnail that most
cameras write to the file header. From the script you can see
the basic structure, and you can find JPG header specs
online. From that you could theoretically write a script to
write comments to a JPG file, but it would be a tedious job
because there are so many optional types of data that can
be saved in a JPG file header, and it all has to be saved in
complex, predefined structures. You would need to find all of
the data in the existing header, then write a new header that
doesn't lose the original tags/thumbnail while saving new
comments.



My System SpecsSystem Spec
Old 11-16-2008   #3 (permalink)
ThatsIT.net.au


 
 

Re: How can you change the comments property of a jpg

Thanks I'll give the component a try


"mayayana" <mayaXXyana@xxxxxx> wrote in message
news:%23$HOVC6RJHA.5860@xxxxxx
Quote:
Quote:

>> I want to change the comments property of a jpg
>> any ideas
>
> There are actually a number of JPG comments.
> There are the EXIF tags, which are identified numerically
> and stored in the JPG file header. Most of the EXIF tags
> are concerned with camera info. Then there are also IPTC
> tags. IPTC is an entirely different system of tags established
> by the Newspaper Association of America (NAA) and the
> International Press Telecommunications Council (IPTC).
> IPTC tags were meant to be used by journalists to save
> info. like copyright, photographer name, image description, etc.
>
> All of that is optional, stored in the JPG file header
> if present.
>
> If you're thinking of the comments in the Properties
> window on WinXP, that's actually a particular, custom
> EXIF tag that Microsoft uses. MS uses a single EXIF tag
> for their properties, which are stored as unicode. (Unlike
> all other EXIF tags, which are stored as ansii strings.)
> Microsoft (or at least WinXP) does not recognize IPTC
> tags. If you save properties via Windows it will corrupt
> and/or erase any existing IPTC tags in the file header.
>
> As for writing the comments, that might be tricky to
> do programmatically. There are components available, but
> I don't know if there's anything free that will do it.
>
> You could also see this link:
>
> www.jsware.net/jsware/scripts.php5#jpginf
>
> The download is a script that uses only basic VBS and
> Textstream methods to read IPTC and EXIF tags from
> a JPG file header, and to extract the thumbnail that most
> cameras write to the file header. From the script you can see
> the basic structure, and you can find JPG header specs
> online. From that you could theoretically write a script to
> write comments to a JPG file, but it would be a tedious job
> because there are so many optional types of data that can
> be saved in a JPG file header, and it all has to be saved in
> complex, predefined structures. You would need to find all of
> the data in the existing header, then write a new header that
> doesn't lose the original tags/thumbnail while saving new
> comments.
>
>
>
My System SpecsSystem Spec
Old 01-08-2009   #4 (permalink)
Ravinder


 
 

Re: How can you change the comments property of a jpg

Hi

Were you able to code this, I also need to update the comments.
Any help would be appreciated.

Thanks
Ravi

"ThatsIT.net.au" wrote:
Quote:

> Thanks I'll give the component a try
>
>
> "mayayana" <mayaXXyana@xxxxxx> wrote in message
> news:%23$HOVC6RJHA.5860@xxxxxx
Quote:
Quote:

> >> I want to change the comments property of a jpg
> >> any ideas
> >
> > There are actually a number of JPG comments.
> > There are the EXIF tags, which are identified numerically
> > and stored in the JPG file header. Most of the EXIF tags
> > are concerned with camera info. Then there are also IPTC
> > tags. IPTC is an entirely different system of tags established
> > by the Newspaper Association of America (NAA) and the
> > International Press Telecommunications Council (IPTC).
> > IPTC tags were meant to be used by journalists to save
> > info. like copyright, photographer name, image description, etc.
> >
> > All of that is optional, stored in the JPG file header
> > if present.
> >
> > If you're thinking of the comments in the Properties
> > window on WinXP, that's actually a particular, custom
> > EXIF tag that Microsoft uses. MS uses a single EXIF tag
> > for their properties, which are stored as unicode. (Unlike
> > all other EXIF tags, which are stored as ansii strings.)
> > Microsoft (or at least WinXP) does not recognize IPTC
> > tags. If you save properties via Windows it will corrupt
> > and/or erase any existing IPTC tags in the file header.
> >
> > As for writing the comments, that might be tricky to
> > do programmatically. There are components available, but
> > I don't know if there's anything free that will do it.
> >
> > You could also see this link:
> >
> > www.jsware.net/jsware/scripts.php5#jpginf
> >
> > The download is a script that uses only basic VBS and
> > Textstream methods to read IPTC and EXIF tags from
> > a JPG file header, and to extract the thumbnail that most
> > cameras write to the file header. From the script you can see
> > the basic structure, and you can find JPG header specs
> > online. From that you could theoretically write a script to
> > write comments to a JPG file, but it would be a tedious job
> > because there are so many optional types of data that can
> > be saved in a JPG file header, and it all has to be saved in
> > complex, predefined structures. You would need to find all of
> > the data in the existing header, then write a new header that
> > doesn't lose the original tags/thumbnail while saving new
> > comments.
> >
> >
> >
>
My System SpecsSystem Spec
Old 01-08-2009   #5 (permalink)
Ravinder


 
 

Re: How can you change the comments property of a jpg

This Script is great

www.jsware.net/jsware/scripts.php5#jpginf

It gave me desired results .. YAY !!!


"Ravinder" wrote:
Quote:

> Hi
>
> Were you able to code this, I also need to update the comments.
> Any help would be appreciated.
>
> Thanks
> Ravi
>
> "ThatsIT.net.au" wrote:
>
Quote:

> > Thanks I'll give the component a try
> >
> >
> > "mayayana" <mayaXXyana@xxxxxx> wrote in message
> > news:%23$HOVC6RJHA.5860@xxxxxx
Quote:

> > >> I want to change the comments property of a jpg
> > >> any ideas
> > >
> > > There are actually a number of JPG comments.
> > > There are the EXIF tags, which are identified numerically
> > > and stored in the JPG file header. Most of the EXIF tags
> > > are concerned with camera info. Then there are also IPTC
> > > tags. IPTC is an entirely different system of tags established
> > > by the Newspaper Association of America (NAA) and the
> > > International Press Telecommunications Council (IPTC).
> > > IPTC tags were meant to be used by journalists to save
> > > info. like copyright, photographer name, image description, etc.
> > >
> > > All of that is optional, stored in the JPG file header
> > > if present.
> > >
> > > If you're thinking of the comments in the Properties
> > > window on WinXP, that's actually a particular, custom
> > > EXIF tag that Microsoft uses. MS uses a single EXIF tag
> > > for their properties, which are stored as unicode. (Unlike
> > > all other EXIF tags, which are stored as ansii strings.)
> > > Microsoft (or at least WinXP) does not recognize IPTC
> > > tags. If you save properties via Windows it will corrupt
> > > and/or erase any existing IPTC tags in the file header.
> > >
> > > As for writing the comments, that might be tricky to
> > > do programmatically. There are components available, but
> > > I don't know if there's anything free that will do it.
> > >
> > > You could also see this link:
> > >
> > > www.jsware.net/jsware/scripts.php5#jpginf
> > >
> > > The download is a script that uses only basic VBS and
> > > Textstream methods to read IPTC and EXIF tags from
> > > a JPG file header, and to extract the thumbnail that most
> > > cameras write to the file header. From the script you can see
> > > the basic structure, and you can find JPG header specs
> > > online. From that you could theoretically write a script to
> > > write comments to a JPG file, but it would be a tedious job
> > > because there are so many optional types of data that can
> > > be saved in a JPG file header, and it all has to be saved in
> > > complex, predefined structures. You would need to find all of
> > > the data in the existing header, then write a new header that
> > > doesn't lose the original tags/thumbnail while saving new
> > > comments.
> > >
> > >
> > >
> >
My System SpecsSystem Spec
Old 01-08-2009   #6 (permalink)
mayayana


 
 

Re: How can you change the comments property of a jpg

> This Script is great
Quote:

>
> www.jsware.net/jsware/scripts.php5#jpginf
>
> It gave me desired results .. YAY !!!
>
That was easy. That script doesn't change
properties, though. It only reads them. You said
you need to "update the comments". Personally
I wouldn't try that with a script. A JPG header
is very complex and poorly designed. To parse and
rebuild it with Textstream would be awkward.


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Struggling to change property at end of pipeline PowerShell
Thread-safety: Change property of items in arraylist versus removingitems from the arraylist .NET General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46