Page 1 of 1

Gallery module - no thumbs using cgsmartimage

Posted: Tue May 23, 2017 1:04 pm
by map_1961
Hi volks.

It's keeping me busy. This code in modified Lightbox gallery module template ...

Code: Select all

{* <img src="{CGSmartImage src1=$image->thumb|escape:'url'|replace:'%2F':'/' alias1='thumbnail' filter_watermark=1 notag=1}" alt="{$image->titlename}" /> *}
created empty sub gallery thumbs in gallery overview frontend with error message in souce:

Code: Select all

<b>Notice</b>:  Falsche oder defekte Datei für das Wasserzeichen angegeben in <b>/homepages/16/d184975754/htdocs/papageienpark2/modules/CGSmartImage/action.default.php</b> on line <b>44</b><br />
Translation: "Incorrect or broken file for the watermark specified in..."

When i use the original Lightbox code

Code: Select all

<img src="{$image->thumb|escape:'url'|replace:'%2F':'/'}" alt="{$image->titlename}" /> 
The subgallery thumbs appear - but no watermark of course.

Thx 4 help.

MAP

Re: Gallery module - no thumbs using cgsmartimage

Posted: Mon May 29, 2017 8:29 am
by velden
I would not use the thumb file but the original and let cgsi do the resizing. Don't use the escape and replace modifiers for the src value.