I think it was one of the latest versions of Slimsy where upscale is set til false as default. However I noticed when setting output format to png, it does upscale the image by default.
Futhermore, is there a way to avoid force the output to jpg and use the default format? e.g. I have some jpg and some png (with transparent background). Perhaps a parameter to handle this?
Yes we had to switch back to upscale=true because ImageProcessor does not crop if it cannot upscale which leads to warped image results if a request is made for a size larger than the source (I will be seeking a different solution but currently this will have to stay).
If you add the below to your appsettings in web.config then format will be auto rather than jpg (we changed to jpg as default as it offers the best compression format)
Upscale default when output image format is png
I think it was one of the latest versions of Slimsy where upscale is set til false as default. However I noticed when setting output format to png, it does upscale the image by default.
So with this line:
I have to change it to this to avoid upscaling:
Futhermore, is there a way to avoid force the output to jpg and use the default format? e.g. I have some jpg and some png (with transparent background). Perhaps a parameter to handle this?
/Bjarne
Hi Bjarne,
Yes we had to switch back to upscale=true because ImageProcessor does not crop if it cannot upscale which leads to warped image results if a request is made for a size larger than the source (I will be seeking a different solution but currently this will have to stay).
If you add the below to your appsettings in web.config then format will be auto rather than jpg (we changed to jpg as default as it offers the best compression format)
Jeavon
is working on a reply...