You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.
I am using Nexif from c# in a Visual Studio project to add keywords in the string array sTags to a file sFile and store the tagged file as sFile_7.tmp.jpg with the code below
` ///
/// Set sFile Keywords using NExifTool and write to sFile + _7.tmp.jpg
///
///
///
public async static void SetTagsWithNexif(string sFile, string[] sTags)
{
List UPDATE = new List {
new SetOperation(new NExifTool.Tag("keywords", sTags)) };
var opts = new ExifToolOptions();
var et = new ExifTool(opts);
var result = await et.WriteTagsAsync(sFile, UPDATE, sFile+ "_7.tmp.jpg");
}`
If I call this function several times, where sFile is a file previously captioned with the code, the output file sometimes contains part of the input image (usually the bottom, but placed at the top on the output image), but with the remainder filled with the same colour, which appears to be one of the colours appearing in the input image.
The text was updated successfully, but these errors were encountered:
Hello, sorry for not getting back to you on this issue. I've been very busy and have not had a lot of time to look at this lib. I have not been able to replicate this so far, and will also be pushing a small update in the next day or two (I hope). That might be worth testing as it updates some underlying dependencies, but honestly would not expect that to address the issue.
I updated the "FileToFileWriteTest" locally to the following and have run a number of times w/o reproducing the issue:
I suspect this could be a difference between how windows and linux manages files, in particular around locking, but I don't have an easy way to test on win at the moment.
Were you able to work around this / get it to work?
Sorry for the lack of response,
Mike
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am using Nexif from c# in a Visual Studio project to add keywords in the string array sTags to a file sFile and store the tagged file as sFile_7.tmp.jpg with the code below
` ///
/// Set sFile Keywords using NExifTool and write to sFile + _7.tmp.jpg
///
///
///
public async static void SetTagsWithNexif(string sFile, string[] sTags)
{
List UPDATE = new List {
new SetOperation(new NExifTool.Tag("keywords", sTags)) };
If I call this function several times, where sFile is a file previously captioned with the code, the output file sometimes contains part of the input image (usually the bottom, but placed at the top on the output image), but with the remainder filled with the same colour, which appears to be one of the colours appearing in the input image.
The text was updated successfully, but these errors were encountered: