Using the Fill option for the image, the image will be center aligned when the container size changes.
I need the image still fill the width of the container, but align to the top of the image, instead of the center. Crop doesn’t work, bc it will scratch the image only on the X-axis.
The container can get wider, but the height is fixed.
I tried different way (change the image to scale, auto layout, etc) and couldn’t find a way to achieve this.
Anyone knows a trick? Or this is something Figma cannot do at the moment?
Adding a comment here to say this is critical for me! I have a “search result row” component with an image in each. The image proportions vary, so in order to convey how the alignment should work (to developers), I need a way to set an image to “fit” but align it to the top of its container. Figma, please help!
Actually, a quick way to do this is to mask the image with the shape you want it to fill. To do this select the shape you want to fill with the layer palette on the left. Then use the hot key ctrl + shift + k. (I’m using windows). Then select the image from file explore and select open. You will then be able to drop the image in the shape, size it and adjust it as you wish.
Isn’t it also possible to just change it from “Fill” to “Crop” and align the image however you need it to be? I’d love to have quick “align-top” or “focus on this” functions with the fill image, but crop allows me to do just this and with specificity. Just a consideration.