public Resize() { if (RuntimeInformation.OSArchitecture is Architecture.X86 or Architecture.X64) { // Workaround ImageMagick issue OpenCL.IsEnabled = false; } // Disable libvips operations cache NetVipsUtil.CacheSetMax(0); }