xRS MODX extra

Image resizing

Logo ResourceSpace Logo Wordpress Logo Prestashop Logo Joomla

Image resizing with pThumb

The option &pOtions passes options to the pThumb snippet.

In this example the highest RS image resolution is targeted (option rssize is not specified) for 550 pixels width resizing at quality 90: w=550&q=90

If pOptions option is not specified, URL target the original image file.

[[xrs?
    &action=`single`
    &rsid=`181`
    &tpl=`itpl.rssingle.img`
    &extend=`1`
    &pOptions=`w=550&q=90`
]]

Result

2019-07-19 16:37:18