help desk
My client is uploading very big images in Extenso which is causing the site to be slow to display. Is there an image processor I can use to resize the image on upload or on display.
You can use the image processor to parse the images.
The image processor is a program inside extenso that allow you to manipulate image. You will be able to CROP, RESIZE and COMPRESS images on the website.
You can use it directly in the code of you widget when you display or you can use it in a program that will generate image to your parameters.
Image processor will generate a new version of the image corresponding to the parameters. This will generate the image once and only in staging.
Some of the available parameters :
More information :
/extenso/module/sed/image_processor/README.md
Simple example :
The result below will only change the image to have be 200 max width.
image_name.jpg?maxw=200
<img src=’{_{data.rows.image}}?maxw=200’>
Resize and add margin example :
the result will be a 200x200 image not distorted with margin in black.
image_name.jpg?size=200x200&margins&bgcolor=0,0,0
<img src=’{_{data.rows.image}}?size=200x200&crop&margins&bgcolor=0,0,0’ >
Crop example :
The result will be a 200x200 image with no margin. So the image will be crop from the center to fit the area.
image_name.jpg?size=200x200&crop&margins
<img src=’{_{data.rows.image}}?size=200x200&crop&margins’>
Replied on: 2020-01-30 00:00:00