User tests: Successful: Unsuccessful:
Since #36930 the thumbnail image of a media item is an image HTML element. When the width and height are 0, then the image is rendered with 0 width/height and invisible. Instead of the attributes should be ignored. This pr adds no attribute when width and height are not available and sets loading not to lazy.
No preview image is visible, because it has width and height of 0.
A preview image is shown with no width/height/loading attribute.
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_media NPM Change |
Labels |
Added:
NPM Resource Changed
?
|
When you fetch data from an external service like FTP, then there is no image information. Since 4.1 a width/height attribute is required as int value, the adapter has to return at least 0. You can try it with the free version of DPMedia and the FTP adapter.
I have tested this item
Thanks for explaining the use case
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
?
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-09-02 19:15:08 |
Closed_By | ⇒ | roland-d |
Thank you
After rebuilding the media manager I can confirm this works
BUT - in what scenario would the image ever have a height/width of 0?