Skip to content
\n

It does work (partially), but I have some issues. First of all, I think that I'm doing SetValue wrong somehow, since I'm not setting TValueType for SetValue. When I try to do that, like this:
\nprofile.SetValue<string>(ExifTag.UserComment, \"Wonderful wonderful little cømment\");
\nI get that \"Argument 1: cannot convert from 'ImageMagick.ExifTag<byte[]>' to 'ImageMagick.ExifTag<string>\". Not sure how to do this correctly.

\n

Secondly, with the way I do it, if I then open the image in GIMP, I can see that the charset isn't set correctly since it says \"charset=InvalidCharsetId l wonderful little cømment\" for the comment of the image. Probably related to how I do SetValue, or what am I doing wrong?

","upvoteCount":1,"answerCount":2,"acceptedAnswer":{"@type":"Answer","text":"

The format is a byte array because the value is an \"undefined type\" so you will need to write the bytes yourself. I did find this PR that contained some information about that you should do: SixLabors/ImageSharp#1919.

","upvoteCount":1,"url":"https://github.com/dlemstra/Magick.NET/discussions/1715#discussioncomment-10653148"}}}
Discussion options

You must be logged in to vote

The format is a byte array because the value is an "undefined type" so you will need to write the bytes yourself. I did find this PR that contained some information about that you should do: SixLabors/ImageSharp#1919.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by BareGeode
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants