RE: [sanselan] Writing EXIF data to JPEG

2012-07-31 Thread tiersene
Hi mgainty EXIF_TAG_XPCOMMENT is a final constant which cannot be modified Thank you for the info What about EXIF_TAG_USER_COMMENT? -- View this message in context: http://apache-commons.680414.n4.nabble.com/sanselan-Writing-EXIF-data-to-JPEG-tp4451598p4637453.html Sent from the Commons

Re: [sanselan] Writing EXIF data to JPEG

2012-03-09 Thread Kasper Føns
We can safely conclude from this that there is many reasons why 1.0 needs to be released, and 0.97 needs to die :). I can agree to that. Now that you have helped me so immensely, I will try to repay you a little with some feedback on the project. I will be biased by the 0.97 version and

Re: [sanselan] Writing EXIF data to JPEG

2012-03-08 Thread Kasper Føns
Sorry about the website, I plan on fixing it with the 1.0 release. UserComment is one of the uglier cases, as it uses that GPS string type with a special prefix to distinguish character encodings. Try using TagInfo.Text's encodeValue() method to convert the String to byte[], then pass that to

Re: [sanselan] Writing EXIF data to JPEG

2012-03-08 Thread Damjan Jovanovic
On Thu, Mar 8, 2012 at 2:45 PM, Kasper Føns kfo...@gmail.com wrote: Sorry about the website, I plan on fixing it with the 1.0 release. UserComment is one of the uglier cases, as it uses that GPS string type with a special prefix to distinguish character encodings. Try using TagInfo.Text's

Re: [sanselan] Writing EXIF data to JPEG

2012-03-08 Thread Kasper Føns
I wouldn't count on Windows Explorer to give you the right values. Rather check it against exiftool (www.sno.phy.queensu.ca/~phil/exiftool/): exiftool -a -g1 -u image.tiff Windows Explorer also likes the XP values (eg. EXIF_TAG_XPCOMMENT, EXIF_TAG_XPAUTHOR), maybe try writing those as well?

Re: [sanselan] Writing EXIF data to JPEG

2012-03-08 Thread Kasper Føns
Windows Explorer also likes the XP values (eg. EXIF_TAG_XPCOMMENT, EXIF_TAG_XPAUTHOR), maybe try writing those as well? Hmm. You seem to be right that explorer likes the XP values. However, I can't figure out how to write to them. I can see that they are BYTE values, but how to convert a

Re: [sanselan] Writing EXIF data to JPEG

2012-03-08 Thread Damjan Jovanovic
On Thu, Mar 8, 2012 at 7:02 PM, Kasper Føns kfo...@gmail.com wrote: Windows Explorer also likes the XP values (eg. EXIF_TAG_XPCOMMENT, EXIF_TAG_XPAUTHOR), maybe try writing those as well? Hmm. You seem to be right that explorer likes the XP values. However, I can't figure out how to write to

Re: [sanselan] Writing EXIF data to JPEG

2012-03-08 Thread Damjan Jovanovic
On Thu, Mar 8, 2012 at 6:39 PM, Kasper Føns kfo...@gmail.com wrote: I wouldn't count on Windows Explorer to give you the right values. Rather check it against exiftool (www.sno.phy.queensu.ca/~phil/exiftool/): exiftool -a -g1 -u image.tiff Windows Explorer also likes the XP values (eg.

Re: [sanselan] Writing EXIF data to JPEG

2012-03-07 Thread Kasper Føns
On 07-03-2012 06:37, Damjan Jovanovic wrote: On Wed, Mar 7, 2012 at 12:46 AM, Kasper Fønskfo...@gmail.com wrote: Hi Sanselan. I have a hard time finding out how to use Sanselan. Suppose I have some JPEG picture which I want to add some attributes to. If for example I want to add some user

Re: [sanselan] Writing EXIF data to JPEG

2012-03-07 Thread Damjan Jovanovic
On Wed, Mar 7, 2012 at 8:07 PM, Kasper Føns kfo...@gmail.com wrote: On 07-03-2012 06:37, Damjan Jovanovic wrote: On Wed, Mar 7, 2012 at 12:46 AM, Kasper Fønskfo...@gmail.com  wrote: Hi Sanselan. I have a hard time finding out how to use Sanselan. Suppose I have some JPEG picture which I

Re: [sanselan] Writing EXIF data to JPEG

2012-03-07 Thread Kasper Føns
On 07-03-2012 19:41, Damjan Jovanovic wrote: On Wed, Mar 7, 2012 at 8:07 PM, Kasper Fønskfo...@gmail.com wrote: On 07-03-2012 06:37, Damjan Jovanovic wrote: On Wed, Mar 7, 2012 at 12:46 AM, Kasper Fønskfo...@gmail.comwrote: Hi Sanselan. I have a hard time finding out how to use

Re: [sanselan] Writing EXIF data to JPEG

2012-03-07 Thread Damjan Jovanovic
On Wed, Mar 7, 2012 at 10:37 PM, Kasper Føns kfo...@gmail.com wrote: On 07-03-2012 19:41, Damjan Jovanovic wrote: On Wed, Mar 7, 2012 at 8:07 PM, Kasper Fønskfo...@gmail.com  wrote: On 07-03-2012 06:37, Damjan Jovanovic wrote: On Wed, Mar 7, 2012 at 12:46 AM, Kasper Fønskfo...@gmail.com