Respect linked_image width and height when adding new image to email
Currently when I set the width and height of a linked_image using HubL that width and height will be overwritten as soon as an end user plugs a new image into their email.
In a responsive design world we need to be able to specify image widths and heights and have those attributes honored even when a newly uploaded image is twice the specified size.
We can’t expect the email creators to understand the design aspects of a responsive email and retina 2x images during the creation process, it’s not their job to have to resize multiple images to sizes that mean nothing to them.
Please honor the specified width and height in the template.
I must say I don't have this problem; if I specify the image dimensions using hubl, I believe they do stay. However, you want to keep things modular for your content authors so I don't specify this ( I try surrounding the image in a div and specifying that instead when creating the template). This way, the content author could reduce/increase size dimensions on their image upload using the "adjust size" + and - buttons in the image modules. Maybe try using those?
Agreed! It's hard to believe that HS has no solutions/documentation for handling retina images considering how much they emphasize the importance of responsive design.
Jamieson Christian commented
Agreed! Email content authors should not have to worry about whether their image is going to cause the email layout to blow up. Unfortunately, it's far to easy for that to happen now.
Lydia Dugger commented
Agreed - I expected the behavior that Charles describes.
It should be noted that specifying the width/height of an image in a template has the same end result as not specifying the width/height in a template -- the width/height of the uploaded/linked image is used by default.
Specifying the width/height of linked_image should force the dimensions to persist.
Not specifying the dimensions should force the uploaded image's dimensions to be used instead.
What should not happen is the same thing regardless of whether or not the parameters are used.