This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

ASM Forward Media
ASM Forward Media

I want to generate thumbnails from images (fileupload model). And i want to get square thumbnails. Sources in png with alpha channel, let say 1200 x 1600 So in twig i have for now:

{{ product.featured_images[0].thumb(350,350,{mode:'auto',extension:'auto'}) }}

Need to generate 350 x 350 thumbnail with WHITE background in jpg output, where image resizing follows logic: a) strict 350 height (long side) b) make it on white background c) fill empty fields with background to get 350 width (short side)

So i guess we need 'fit' logic? And background color property.

Last updated

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.