Problem with image cropping (Silverstripe CMS 3.4.0)

Silverstripe Version: 3.4.0

Question: What to do if the images I publish are being cropped automatically and I don’t know what changes I should make so that the pictures won’t be cropped but adapted?

Hi, so there is a problem with the images I post. They are being cropped. I tried to use tools to resize them, but the result was not satisfying in the end. What is interesting is that on the computer that I use images look less cropped than on other devices. Don’t know why. Perhaps because of the display settings. Here is an example: Visit Kaunas - Nordclinic. Any suggestions on how to fix it?

It may be that you can just change the image manipulation for a different method to help cure the issue. The documentation shows the available options: https://docs.silverstripe.org/en/3/developer_guides/files/images/

Looking at the page source, it also seems that the slideshow (which I’m guessing is what you’re concerned about) is showing the images as a CSS background… which means the browser will be cropping the image as best it can to cover the area. (This is likely why different devices display differently, due to things like changing sizes, aspect ratio, etc.) You would need to look at changing this to either display the images as part of the actual document, or changing the CSS rules for the background.

1 Like

@Tim , thank you for your help and fast reply.