London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Feature request - Customizable thumbnail sizes in Media Library

Vote:
0

On small screens the thumbnails become very small in media library. It would be a nice feature to be able to enlarge them somehow.

#160792
Oct 06, 2016 13:42
Vote:
0

If you are speaking about front-end, you can customize thumbnail using:

public class ImageData : MediaData
{
    /// <summary>
    /// Gets or sets the generated thumbnail for this media.
    /// </summary>
    [ImageDescriptor(Width = 48, Height = 48)]
    public override Blob Thumbnail
    {
        get { return base.Thumbnail; }
        set { base.Thumbnail = value; }
    }
}

more detail:

http://world.episerver.com/documentation/Items/Developers-Guide/Episerver-CMS/8/Content/Assets-and-media/Media-types-and-templates/

Aria

#174280
Jan 24, 2017 0:08
Vote:
0

So if you need to change size within Media Library you may need to:

  1. Inject custom CSS and override 48px X 40px
  2. Override Thumbnail and change the width and height of pixel

Aria

#174281
Jan 24, 2017 0:18
This thread is locked and should be used for reference only. Please use the Legacy add-ons forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.