We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ran into an issue working with certain images exported from photomechanic. Looks like it's appending multiple null values to the end of the XMP data.
I was able to pinpoint the problem and fix it here.
taglib-sharp/src/TaglibSharp/Xmp/XmpTag.cs
Line 261 in c853d26
From if (data[data.Length - 1] == '\0')
if (data[data.Length - 1] == '\0')
To while (data.Length > 0 && data[data.Length - 1] == '\0)
while (data.Length > 0 && data[data.Length - 1] == '\0)
The text was updated successfully, but these errors were encountered:
I ran into the same problem, debugged it, solved it and then found this issue, which came up with the same solution.
In my case I had to remove more than 1000 '/0' from the string. Because of that, I changed the code slightly, to avoid creating 1000 strings:
if (data[data.Length - 1] == '\0') { int shorterLength = data.Length - 1; while (shorterLength>0 && data[shorterLength] == '\0') shorterLength--; data = data.Substring (0, shorterLength); }
Sorry, something went wrong.
No branches or pull requests
Ran into an issue working with certain images exported from photomechanic.
Looks like it's appending multiple null values to the end of the XMP data.
I was able to pinpoint the problem and fix it here.
taglib-sharp/src/TaglibSharp/Xmp/XmpTag.cs
Line 261 in c853d26
From
if (data[data.Length - 1] == '\0')
To
while (data.Length > 0 && data[data.Length - 1] == '\0)
The text was updated successfully, but these errors were encountered: