skip to Main Content

ImageResizer – Getting generic error GDI while resizing image – Asp.net

Here is my Image resizing code. private void ResizeImage(int width, int height, string szFilePath, string destinationPath) { //var watch = new System.Diagnostics.Stopwatch(); //watch.Start(); Serilog.Log.ForContext<ImageResizeHandler>().Information($"Image resize process start for file :{szFilePath}"); var instructions = getInstructions(width, height); try { ImageResizer.ImageBuilder.Current.Build(szFilePath, szFilePath, instructions);…

VIEW QUESTION
Back To Top
Search