Skip to content

Images in the gallery are stretched too much #2086

Description

@swolf86

Which area(s) of Podkrepi.bg are affected?

No response

Describe the Bug

Some images have higher heights than the others so they look stretched. It looks very unprofessional

Image

To Reproduce

go to for example
https://podkrepi.bg/en/campaigns/istoriyata-na-kateracha-lucho
scroll down to the gallery and change the images

Expected Behavior

all images to keep the ration of height and width that they are and the code to crop the image according to the objects e.g take the least matching size. For example take a image

Image

And adjust it to something like this. The below example is the best. Here I followed the steps download the image, adjust to the ratio of the gallery. scale down the image and fill in the missing top and bottom or sides with content aware fill

Image

Which browser are you using? (if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions