Replies: 2 comments 2 replies
-
Are you sure this is not an issue in the Minio library? I just made the following change to one of my unit tests: 6b043e5. And this unit test is passing. And when I change the output format in that test to GIF instead of TIFF it still passes. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm fairly sure it has nothing to do with minio for one reason. I just tried to write to FileStream instead: var tempFileName = Path.GetTempFileName();
await using var saveStream = new FileStream(tempFileName, FileMode.Open, FileAccess.ReadWrite);
await gif.WriteAsync(saveStream);
saveStream.Flush();
saveStream.Close(); And the resulting file is only 68KB and does not animate. gif.Write("debug.gif", MagickFormat.Gif); directly the resulting file was close to 1MB in size. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm trying the generate gifs and saving them to minio by using a MemoryStream to hand over the data to the minio WriteAsync method. This works just fine for all other files, even Magic.NET generated png files. But not gifs!?
This is the method I use.
When I replace the
With:
It works just fine!
I'm I using the MemoryStream wrong? How else can you move data from one method that writes to a stream to another that reads from a stream?
Beta Was this translation helpful? Give feedback.
All reactions