This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Notification

Icon
Error

Options
Go to last post Go to first unread
akma  
#1 Posted : Monday, November 26, 2007 8:09:37 PM(UTC)
akma

Rank: Member

Groups: Guest
Joined: 11/26/2007(UTC)
Posts: 1

Hello

I am trying to change the XMP metadata in JPG files but Xmp.Save() method generates an error if the XmpValueNode's value contains any swedish non ASCII charater. It works if i convert the string to 7-bit ASCII but if i do that the 'Å' is replaced by '?' in Photoshop.

Is this a bug or am I doing something wrong?

/Martin

Code:

LosslessJpegTransform JT = new LosslessJpegTransform(InputFile);
XmpData Xmp;
if (JT.Xmp != null)
    Xmp = new XmpData(JT.Xmp);
else
    Xmp = new XmpData();

XmpValueNode Node = new XmpValueNode(XmpNodeType.SimpleProperty, "Åkesson", XmpTagNames.DCTitle);
if (Xmp.Contains(Node))
    Xmp[XmpTagNames.DCTitle] = Node;
else
    Xmp.Add(XmpTagNames.DCTitle, Node);

JT.Xmp = Xmp.Save();    // <------Throws the error "External component has thrown an exception."
JT.Write(OutputFile);

Edited by user Monday, December 17, 2007 9:28:55 AM(UTC)  | Reason: Not specified

Alex Chertov  
#2 Posted : Wednesday, November 28, 2007 1:54:34 PM(UTC)
Alex Chertov

Rank: Member

Groups: Guest
Joined: 11/28/2007(UTC)
Posts: 1

Hello, Martin.

Thank you for letting us know about this problem. There actually is a bug and it will be fixed in the next release of Graphics Mill for .NET. If you urgently need the fix for this bug please submit case.

Edited by user Thursday, May 22, 2008 9:12:17 PM(UTC)  | Reason: Not specified

Users browsing this topic
Guest
Forum Jump  
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.