I’m using ImageResizer, I nuget the core and webconfig packages and did not change any settings and I simply have this line of code,
ImageBuilder.Current.Build(file, name, new ResizeSettings("maxwidth=1024&maxheight=1024"), false, true);
But the saved image always has up to 900 width or height instead of 1024 I asked for in the code, why is that? My original image is 1600×1200, how do I resize to 1024×770?
Thanks!
[Edit by ComputerLinguist]
The OP is using the uEditor javascript library to perform the image uploads.
It turns out the original image was being resized on the client before being sent to the server, by the uEditor javascript library.
The OP was using the ImageResizer library correctly, and the library was behaving correctly, but it was receiving a image that was already 900 pixels wide.
The most common cause of a resized image being smaller than desired is when the original image is already smaller than the requested dimensions, in which case the ImageResizer will not perform upscaling. If you want upscaling, add &scale=both or &scale=upscalecanvas.