Hello
I’m trying to write a plugin which generates auto thumbnails of images a user added
with tinymce (only if the img tag contains a modified height or width property).
However, i wanted to use Shaun’s phpthumbof snippet to generate the thumbnail.
But as soon as I use this command, I get a blank page in the frontend, containing only the value returned by the snippet..(correct value!)
$newimage = $modx->runSnippet("phpthumbof",array('input' => $input, 'options' => $options));
This code is written inside the ’OnWebPagePrerender’ event.
Anyone know why this happens? I tested to run another Snippet, I get also a blank page with the snippet-value.
Thanks for answers