Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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:
<img src="@featureImage.GetResponsiveImageUrl(270, 161, "Image", "png")" alt="" />
I have to change it to this to avoid upscaling:
<img src="@featureImage.GetResponsiveImageUrl(270, 161, "Image", "png")&upscale=false" alt="" />
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)
<add key="Slimsy:Format" value="false"/>
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted