builder icon indicating copy to clipboard operation
builder copied to clipboard

Editing the image component does not update aspect ratio

Open homanp opened this issue 5 years ago • 3 comments

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.

homanp avatar May 11 '20 13:05 homanp

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 -

  1. drag the bottom handle of an image
  2. from the options tab hit "show more" and then enter a value for "aspect ratio"

steve8708 avatar May 11 '20 15:05 steve8708

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!

homanp avatar May 11 '20 17:05 homanp

Hi @homanp, we'll add this to our list of feature requests and get back to you once we've added it 😊

ca136 avatar May 19 '20 23:05 ca136