Suggestion: Image scaling - respect height attribute

It would be great if the <img editable> template tag respected the height attribute when scaling images.

Currently an editable image will be scaled to match the width attribute, while retaining its aspect ratio. For example, consider the following img tag:

<img width="500" height="500" editable>

Currently, a 1000x2000 image will be scaled to 500x1000 - the height attribute is ignored. This means that portrait format images can end up being enormously tall.

What I would like, given the example above, is for the image to be scaled to 250x500, so that it does not exceed the specified 500x500 img dimensions.

Of course if the height attribute is omitted then the present scaling algorithm should be applied.

Stephen, 2 years ago

Hi jnicol,

Thanks for taking the time to send through your request here, it's much appreciated and it's a great idea, so we've gone ahead and have added your vote to our existing feature request for you, and should this become available in the near future, we'll be sure to follow up and let you know :)

Thanks again for your feedback, and do let us know if you have any other questions or requests in the meantime!

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free