Re: [SMARTY] Smarty and GD createimage
| From: | Max Schwanekamp | Date: | Fri, 15 Dec 2006 18:52:04 +0000 |
| Subject: | Re: [SMARTY] Smarty and GD createimage | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-13647@lists.php.net to get a copy of this message | ||
Monte Ohrt wrote:
Your second method is correct, there is no need to create an image using a Smarty plugin. An image requires a separate request to the server to display, it won't display "in-line" in the HTML.What you would do is create a plugin to output an <img> tag with the correct parameters to pass to your createimage.php script; or have the plugin create the image, store it in a cache folder, and output the img tag so the browser requests the just-created file. This latter approach is taken by Cerdmann's Thumb plugin, at which you might want to take a look. http://www.cerdmann.com/thumb/ -- Max Schwanekamp NeptuneWebworks.com 541-517-9064