[pmwiki-devel] php imagepng

Dominique Faure dominique.faure at gmail.com
Wed Nov 8 11:02:07 CST 2006


On 11/8/06, Hans <design5 at softflow.co.uk> wrote:
> Wednesday, November 8, 2006, 4:15:55 PM, Patrick wrote:
>
> > No.  AFAIK, the (only) way the browser knows to display an image
> > is by using an <img ... /> tag or something equivalent that does
> > a separate fetch of the image -- there's not a way to embed raw
> > image data directly into an HTML document.
>
> > It's just the way HTML is designed/written.
>
> Thank you. Then I think it may be best to have imagepng create a file,
> perhaps in the cache/ folder, and refer to this image file in an img
> tag inserted.
>

BTW, you could have a markup directive generating a "<image
src={$ScriptUrl}?action=generateimg />" tag with an associated action
handler which would respond with the appropriate generated image (more
or less what pmwiki already does with attachements when
$EnableDirectDownload is set to 0).

Dom



More information about the pmwiki-devel mailing list