Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, September 16, 2010 4:42:10 AM(UTC)
Jose Corral

Groups: Registered
Posts: 5


Hello,

We are using Leadtools 16.5 for .NET to develop a program that writes EXIF comments.

I attach a screenshot with a strange behaviour with the ImageDescription EXIF comment that we write on the files.

On the file properties in Windows we see the ImageDescription on the Subject but also its show on the Title info.

¿Is this a normal behaviour?

Regards,
José
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, September 16, 2010 4:42:54 AM(UTC)
Jose Corral

Groups: Registered
Posts: 5


Reattaching the image
Jose Corral attached the following image(s):
file.properties.jpg
 
#3 Posted : Thursday, September 16, 2010 6:28:39 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

Was thanked: 1 time(s) in 1 post(s)

José,
Please send me 2 images:
1. An image that you saved using LEADTOOLS and shows the strange behavior.
2. A different image that has an Image Description different from the Title field.
To attach 2 images, put them in a ZIP or RAR file.

Also, please answer the following questions:
1. How exactly are you displaying these properties?
2. Which version of Windows are you using?
3. What is the code you're using to write the comments?

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#4 Posted : Monday, September 20, 2010 2:51:21 AM(UTC)
Jose Corral

Groups: Registered
Posts: 5


Hello,

Thanks for the quick response.

Im displaying these properties using the File Properties using the rigth click on a Windows 7 machine.

Well at the moment i think that there is nothing wrong on LEAD, Windows 7 renders the EXIF ImageDescription on the Title, Subject field on the file properties (i dont know if happens in other OS). Can you confirm me that behaviour?

I send you attached a Zip File with 2 images, one created with LEADTOOLS with the strange behaviour, the other one is a image with title and description modified on File properties.

This is the code that we are using.

RasterCommentMetadata rasCOMMET = new RasterCommentMetadata ();

foreach (RasterCommentMetadataType rasCOMTYP in Enum.GetValues (typeof (RasterCommentMetadataType)))
{
if (rasCOMTYP.ToString () == strNOMCTR) <-- Var that changes with diferent EXIF TAG names
{

switch (rasCOMTYP.ToString ())
{
case "UserComment": rasCOMMET.FromAscii ("ASCII " + dtrMETDTR [ctrMETDAT.strNOMCFI].ToString ()); break;
default: rasCOMMET.FromAscii ( dtrMETDTR [ctrMETDAT.strNOMCFI].ToString ()); break;
}

rasCOMMET.Type = rasCOMTYP;

if (Path.GetExtension (_strPATFIC).ToUpper ().Contains ("JPG"))
{
_rasIMGFIC.Comments.Add (rasCOMMET);
}
else
rscCODLEA.WriteComment (_strPATFIC, 1, rasCOMMET);
}
}
File Attachment(s):
Files.zip (432kb) downloaded 20 time(s).
 
#5 Posted : Tuesday, September 21, 2010 5:51:31 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

Was thanked: 1 time(s) in 1 post(s)

The 'subject' string is stored as double-byte (probably Unicode) text in a tag added by Windows explorer, and not a standard Exif tag.
The tag value is 0x9c9f hex and you can read it using this code:
+-----------+
RasterCodecs codecs = new RasterCodecs();
RasterTagMetadata readTag = codecs.ReadTag(@"F:\diferents.comments - copia.jpg", 1, 40095);

//byte[] readTagData = readTag.GetData();
//for (int i = 0; i < readTagData.Length; i++)
//MessageBox.Show(char( readTagData[i]);            

codecs.WriteTag(@"F:\copied.comments.jpg", 1, readTag);
+-----------+

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.185 seconds.