Wrong width and height HTML attributes with Media PDF Thumbnail Image

Created on 27 December 2024, 24 days ago

First thanks for this module which do a beautiful job !

Problem/Motivation

I just noticed a weird behaviour with the "Media PDF Thumbnail Image", whatever image style I choose (default, large...), the image has always height="180" and width="180" among the html attributes.

Of course, I can force the display in CSS with wdith:100% and height:auto, but it seems to be a bug.

Even more surprising, it takes exactly the dimensions of the drupal generic thumbnail file (/sites/default/files/media-icons/generic/generic.png)

Steps to reproduce

I have this problem with drupal core 11.0.9 and Media PDF Thumbnail 6.1.3 when I format the thumbnail field in a media document display mode.

🐛 Bug report
Status

Active

Version

6.1

Component

Code

Created by

🇫🇷France mitsuko

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

Comments & Activities

Production build 0.71.5 2024