I have a page layout which has a landscape rectangle placeholder component for an image.
I have a library of images of different sizes and ratios e.g. some are tall, some are short, none have the same dimensions. I’ve turned these images into components in order to swap into the placeholder image component.
I want the swapped image to fill the width of the placeholder and then as much of the height as possible, keeping original image proportions intact. It should start at the top of the image - e.g if its a portrait photo you would see the top of the head at the top of the image - not the chest.
I’ve tried variations of the constraints on the library images (e.g. left and right, top) , but in the swapped component the image either distorts, or is not placed at the top. I’ve also experimented with the image settings - crop, fit, fill, the closest was “fit” but then the image is not placed at the top - there is empty space above it.
Not sure if this is 100% clear, but if you have any suggestions or questions please drop a comment and maybe we can solve this together.