Thumbnail path issue in generated admin view page code

3 posts by 2 authors in: Forums > CMS Builder
Last Post: Yesterday at 5:38am   (RSS)

Hi Deborah, 

How's the height/width of the source images that are or aren't getting replaced with thumbnails? 

CMSB selects the image that requires the least scaling to display the preview image, thereby saving on bandwidth and load time.  So depending on the source image size and thumbnail sizes it might select one or the other.

Can you try having a look at /lib/menus/default/list_functions.php and search for showUploadPreview

$maxWidth = 200;
$maxHeight = 54;
showUploadPreview($upload, $maxWidth, $maxHeight);

If you change these values, does it do what you need?  And what are you looking for, for it to show maximum size preview possible?  e.g., what's the use case?

Thanks!

Dave Edis - Senior Developer
interactivetools.com

Dave,

Thanks for the explanation—I understand now and I'm glad everything's working as expected.

On some sites, the images can be so similar that it's hard to tell them apart when they're only 54px high while scrolling through the list.

For my use case, setting both max-width and max-height to the same value achieves the desired result, regardless of the image's orientation.

Appreciate the help—thanks again!
Deborah