The customer can select the images so the image may be very big.
I want to use CGSmartImage to resize the images and have this code in my template:
Code: Select all
{cgsi_convert filter_resize='w,240'}
<!-- content-right-pagina-image -------------------------------------->
<div id="content-right-pagina-image-1">
<img src="{content_image block='pagina-afbeelding-1' dir='images/pagina' class='page-image' urlonly='1'}">
</div>
<!-- content-right-pagina-image-1 ------------------------------------>
<!-- content-right-pagina-image-2 ------------------------------------>
<div id="content-right-pagina-image-2">
<img src="{content_image block='pagina-afbeelding-2' dir='images/pagina' class='page-image' urlonly='1'}">
</div>
<!-- content-right-pagina-image-2 ------------------------------------>
{/cgsi_convert}
I tried several combinations, search this forum but was unable to resize these image to 240px width use cgsi_convert.
Please help.
TIA
CMSMadeSimple 2.2.10
CGSmartImage 1.22.7
PHP version 7.3