Display in media library is extra large

Created on 3 May 2024, 7 months ago
Updated 28 June 2024, 5 months ago

Problem/Motivation

When uploading a gif it renders just fine when skipping image styles but when viewed in the media library the image thumbnail is also the size of hte original gif causing the view to be distorted

Steps to reproduce

Upload a large gift
Go to media library page
See the same large gif

Proposed resolution

Not too sure. Not sure if you can make a thumbnail off a gif

So maybe provide some sort of default?

Remaining tasks

Decide on approach
Implement

User interface changes

Before

After

TBD

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

🇺🇸United States smustgrave

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

Merge Requests

Comments & Activities

  • Issue created by @smustgrave
  • Status changed to Needs review 7 months ago
  • 🇺🇸United States smustgrave

    Not the most fancy implementation but solves the issue

  • Pipeline finished with Success
    7 months ago
    Total: 263s
    #163838
  • Hi, Applied MR 13 , now the image size looks fine. Attaching the screenshots for reference.

  • Status changed to RTBC 6 months ago
  • 🇮🇳India dev16.addweb

    I have tested the MR and found that it's working as expected, so moving it to the RTBC state

  • Status changed to Needs work 5 months ago
  • 🇫🇷France Grimreaper France 🇫🇷

    Hi,

    Thanks for the bug report and workaround MR.

    I don't think it is a long term solution.

    I think an approach like in the https://www.drupal.org/project/field_formatter_range module should be made/tried.

    Altering image related formatters to allow to enable/disable the Gif handling and then update the current hooks to listen to an introduced property. Also, need to ensure that these altering will be available in Views fields.

    if yes, an update path should also be made.

  • Status changed to Needs review 5 months ago
  • 🇮🇳India dev16.addweb

    Thanks @grimreaper,
    I have worked on fulfilling the requirements mentioned in issue #6 and have created a field formatter for GIF thumbnails. This formatter can be used when configuring the Image field in views.
    It may be useful, Please review the attached patch

  • Status changed to Needs work 5 months ago
  • 🇺🇸United States smustgrave

    Please turn to MR

Production build 0.71.5 2024