- πΊπΈUnited States bluegeek9
Thank you for your contributions to this issue. As Drupal 7 has reached its End of Life and is no longer supported, we are closing this issue. We encourage you to upgrade to a supported version of Drupal.
Calling file_view_file($file, $view_mode) with a custom thumbnail-size will create HTML-code containing an IMG-tag which combines the URL for the thumbnail with width and height attributes appropriate for the original image.
This was noticed when, after an upgrade of Drupal core and modules, thumbnail-images inserted through a WYSIWYG-editor were not displayed with the correct dimensions. But manually calling 'file_view_file' from PHP-code yielded the same (erroneous) HTML-code.
Pre-upgrade, the same 'file_view_file'-call generated HTML-code which lacked the width- and height-attributes on the IMG-tag and hence worked correctly. There were no other differences in the generated HTML-code.
Post-upgrade module-versions:
Media: 7.x-2.0-beta2 (datestamp: 1464653492).
File_entity: 7.x-2.0-beta3 (datestamp 1464653173)
Styles: 7.x-2.0-alpha8+5-dev (datestamp 1380638144)
Closed: outdated
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Thank you for your contributions to this issue. As Drupal 7 has reached its End of Life and is no longer supported, we are closing this issue. We encourage you to upgrade to a supported version of Drupal.