$name = $scriptProperties['name'];
[[*pagetitle:Gal=`assets/images/gal`]]
[[+tv.img:phpthumbof=`w=50&h=50&zc=1`]]
[[phpthumbof? &input=`[[+tv.img]]` &options=`w=50&h=50&zc=1`]]
$modx->runSnippet('phpthumbof', array("input" => "/$galdir/$file" , "options" => "w=1100&h=1100"));