.png image size in html using InsertHTML

Hi,

we are taking a png image that exists on the web, and assigning width and height values to it as follows -

<img width="200px" height="100px" src="http://localhost:1677/images/whc_logo.jpg">

and then using InsertHTML and saving. The resulting image is huge (see attached file). How can we affect the size of the image? If this cannot be achieved via HTML, can a fallback approach be to insert the image not using the InsertHTML method and then after the image is inserted, insert the remaining HTML? As you will see, the image sits at the top, which does simply things. Thanks.

Hi

Thanks for your request. When you specify size of an image using width and height attributes, you should not specify measurement units. So modify remove the highlighted from your HTML and it will work as expected:

<img width="200px" height="100px" src="http://localhost:1677/images/whc_logo.jpg">

Best regards,

Great. Thanks. That did it reduce it in size. But if I want to generalize this and say, have height never exceed 100 and let the width float (auto adjust), how would I do that?

Hi
Thanks for your request. Maybe simply do not specify width. In this case original width of an image will be used.
Best regards,