![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| | |||||||
| | Vista - How can you change the comments property of a jpg |
| |
| 11-15-2008 | #1 |
| | How can you change the comments property of a jpg I want to change the comments property of a jpg any ideas |
| My System Specs |
| 11-15-2008 | #2 |
| | 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 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 Specs |
| 11-16-2008 | #3 |
| | 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 Specs |
| 01-08-2009 | #4 |
| | 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 Specs |
| 01-08-2009 | #5 |
| | 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 Specs |
| 01-08-2009 | #6 |
| | Re: How can you change the comments property of a jpg > This Script is great Quote: That script doesn't changeproperties, 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 Specs |
![]() |
| Thread Tools | |
| |
| Similar Threads for: How can you change the comments property of a jpg | ||||
| 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 | |||