Brettflan
Active member
- Affected version
- 2.2.2
As an example, this image below is natively 5px by 250px. It has been sized to 8px by 80px in the post editor, and shows up like that in the editor window. But below, you'll see it is much taller than the specified 80px in the actual post.
However, in the Preview and in the actual rendered post afterwards, the style of the image only specifies the width, not the height. Example output HTML, note the style:
The HTML IMG attributes do specify both width and height, but not in the style.
And as you can see in this post, it is being shown with the correct width, but not the correct height.
Code:
[IMG width="8px" height="80px"]https://imgur.com/cqEqe7U.png[/IMG]
HTML:
<img src="https://imgur.com/cqEqe7U.png" data-url="https://imgur.com/cqEqe7U.png" class="bbImage" data-zoom-target="1" style="width: 8px" alt="" title="" loading="lazy" width="8" height="80">
And as you can see in this post, it is being shown with the correct width, but not the correct height.
Last edited: