Get image width/height from style attribute if image doesn't have width/height attributes

Created on 19 December 2023, 6 months ago

Problem/Motivation

I have HTML where image width/height were set using style attribute:
<p> <img src="/sites/default/files/wiki_attachments/322196/Active_8.png" style="width: 840px; height: 417px;" alt="The document is the master list of all items needed to build the board." title="The document is the master list of all items needed to build the board."><br><span class="caption" style="color:#666666;font-family:tahoma,verdana,sans-serif;font-size:11px;">The document is the master list of all items needed to build the board.</span></p>

I see the same issues for Drupal 6/7, but I couldn't find this issue for 8.x branch:
https://www.drupal.org/project/image_resize_filter/issues/351991 β†’
https://www.drupal.org/project/image_resize_filter/issues/1929710 β†’

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Needs review

Version

1.2

Component

Code

Created by

πŸ‡¦πŸ‡²Armenia levmyshkin Yerevan, Armenia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024