Feature request - Customizable thumbnail sizes in Media Library

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
  • Member since: 2011

    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
  • Member since: 2011

    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