Gallery module - no thumbs using cgsmartimage

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
map_1961
Power Poster
Power Poster
Posts: 410
Joined: Fri Apr 20, 2007 7:26 pm

Gallery module - no thumbs using cgsmartimage

Post 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
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Gallery module - no thumbs using cgsmartimage

Post 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.
Post Reply

Return to “Modules/Add-Ons”