Image crop with PictureRenderer

EVT
EVT
Vote:
 

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?

#305969
Edited, Jul 31, 2023 7:13
Vote:
 

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, 

#305981
Jul 31, 2023 15:23
EVT
Vote:
 

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. 

#306086
Aug 02, 2023 8:27
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.