Vulnerability in EPiServer.Forms
During the upgrade of the project we have switched from image processor to picture renderer.
Now there is an image in the mega menu which is displayed as a square though it should be just a rectangle, it should not be cropped nor reshaped.
The css looks the same in the old and new solutions
In the html previously there was mode=crop coming, not sure where from; and now we see that height is being added which previously was not.
Any suggestions how to fix this?
The two add-ons use different systems to do the actual resizing/processing, so it's not going to be a 1:1 change without issues.
I would suggest creating an issue or feature request on the GitHub repo: https://github.com/ErikHen/PictureRenderer.Optimizely
If you still need the cropping, it needs support for ResizeMode when using ImageSharp and something similar if you're using the CloudFlare Image Resizing,
I thought if no profile was being specified it would show the image as it is.
Followed the guide above, created a new profile, added it to the partial view also the css class (it was not taking one from the cshtml) and now it looks correct.