cgsi_convert CGSmartImage
Posted: Fri Jul 12, 2019 4:03 pm
I need 2 image on my page on the right side with a max-width of 240px.
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:
The images show up on the page but full size. How can I tell CGSmartImage to resize the images to a max-width of 240px.
I tried several combinations, search this forum but was unable to resize these image to 240px width use cgsi_convert.
Please help.
TIA
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