-
- 72 Posts
I'm creating a newsletter-snippet for a customer and want to send a html-newsletter via e-mail and I also want that letter to have images in it.
The customer are going to put in big pictures and I want only a picture in the e-mail to be 600 x 250. On the webpage I use phpthumbof and was wondering if I can use phpthumbof to create a picture that is resized and zoomed and saved to the server so I can give an absolute url to the picture in the e-mail?
...I believed it was Friday...
-
- 72 Posts
Is the 'sia' parameter working in phpthumbof in MODX Revo?
...I believed it was Friday...
-
- 72 Posts
I didnt get the 'sia' parameter to work, so I made a workaround on the problem:
$phpthumbedfile = $modx->runSnippet('phpthumbof', array(
'input' => $nl->getTVValue('conBilde'),
'options' => 'w=600&h=250&zc=C'
));
I got the phpthumbedfile like this and then I copied the file from the cache directory over to another directory that I will use with the html-newsletter with the copy() function in php.
...I believed it was Friday...