Dynamic image with original size

Hello,

i’m having trouble getting the original size of a dynamic image.

How can i use the original size for a dynamic image? The images are always scaled to the size of the first image that I convert to a dynamic image. Each image should be loaded in its original size.

Thanks
Matthias

Hi @Matt, welcome on our OL Learn forum!

A option is to use the inline CSS properties “max-width: 100%;” and “height: auto;” instead of the existing inline CSS properties “width” and “height”, for example:

<img src="file:///C:/path/to/file.png" style="max-width: 100%; height: auto;">

Instead of:

<img src="file:///C:/path/to/file.png" style="width: 600pt; height: 360pt;">

Please let me know if this results in the expected result.