Re: [SMARTY] Smarty and GD createimage
Max Schwanekamp <[email protected]> Fri, 15 Dec 2006 10:52:04 -0800
| Newsgroups | gmane.comp.php.smarty.general |
|---|---|
| Message-ID | <[email protected]> |
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 -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php