Problem/Motivation

Image preview currently only works for the Image media bundle. If you have other media types that use the Image source type, the preview will not be displayed for them.

Proposed resolution

Currently, the preview is based on

return ($this->mediaFoldersSettings->get('show_thumbnails') && $file_entity->bundle() == 'image')

I suggest using the media source type instead of a bundle.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

vitaliyb98 created an issue. See original summary.

vitaliyb98’s picture

Status: Active » Needs review

jmauricio made their first commit to this issue’s fork.

  • jmauricio committed fb6eaf96 on 1.0.x
    task: #3607007 Image preview only works for media bundle image
    
jmauricio’s picture

Assigned: Unassigned » jmauricio

Changes merged into 1.0.x with fb6eaf96 (commits were squashed).

jmauricio’s picture

Assigned: jmauricio » Unassigned
jmauricio’s picture

Status: Needs review » Fixed

Released in 1.0.8

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.