CMS MADE SIMPLE FORGE

CGSmartImage

 

[#10888] Responsive images in background not responsive ?

avatar
Created By: Mich-adg (Mich)
Date Submitted: Thu Feb 11 04:46:01 -0500 2016

Assigned To: Robert Campbell (calguy1000)
Version: 1.20.5
CMSMS Version: 1.12
Severity: Major
Resolution: None
State: Open
Summary:
Responsive images in background not responsive ?
Detailed Description:
Hi,

i display some articles with a div that call a picture in the background.

In my general page template (head) i have : {CGSmartImage action=responsive}
Module CGSmartImage : Enable Responsive, Assume cookie yes, Breakpoints :
640,800,1024,1920
I downloaded all the pictures in uploads/_CGSmartImage and i can see that the
different sizes versions are generated (a good point).
Here how i call the image in a news template :
<div class="NewsSummary" {if
$entry->fieldsbyname.image1->value}style="background-image: url({CGSmartImage
src="$chemin/$limage" filter_resize='w,1920' notag=1 noembed=1})"{/if}>


But when i check my website, the images are resized at 1920 and not at lower
size. If a have only one breakpoint for example at 800, the pictures are resized
at 800. Removing 1920, and it resize to 1024... It always takes the last value
of my list and don't take care of the others !


History