Hello!
Does anybody knows how to set up temporary-path from C# (not from command line and not from env var)
I have to run my app on server and could not give write access to the default path where magick stores temp files (..\Windows\system32\..)
Thank you
How to use temporary-path from C# code? (windows)
Re: How to use temporary-path from C# code? (windows)
Use MagickNET.SetTempDirectory(). See https://github.com/dlemstra/Magick.NET/ ... -directory
Re: How to use temporary-path from C# code? (windows)
Thanks but I could not find example of usage, where should I apply MagickNET.SetTempDirectory("c:/temp")
Re: How to use temporary-path from C# code? (windows)
It just call Environment.SetEnv().
https://github.com/dlemstra/Magick.NET/ ... ET.cs#L262
So it should be called at the very first of each process that uses Magick.NET.
https://github.com/dlemstra/Magick.NET/ ... ET.cs#L262
So it should be called at the very first of each process that uses Magick.NET.