Editing the image component does not update aspect ratio
Hi,
If I add an image component to a page and then update the actual image via the Choose Photo option the aspect ratio does not get updated. The aspect ratio of the old image persists. same goes for updating the imageFile binding with a custom URL.
Expected behaviour:
Aspect ratio of image should be updated according to the new image dimensions on change.
Hey @homanp - so this is actually as expected.
The reason here is that many people make templates with images of a specific aspect ratio and want it to be easy to upload new images but maintaining the layout. The only time the aspect ratio changes automatically is on first upload of an image if the aspect ratio is still the default one set when you drop the image onto the canvas
Note though you can manually set the aspect ratio in two ways -
- drag the bottom handle of an image
- from the options tab hit "show more" and then enter a value for "aspect ratio"
Hey @steve8708,
Ok, got it. I'm also doing a template but my images have different dimensions depending on which page I'm using the template in.
Would it be feasible to have an option for choosing if you want to keep or update the aspect ratio on the image component?
Thanks!
Hi @homanp, we'll add this to our list of feature requests and get back to you once we've added it 😊