CGI::imageHandler(3) Embed an image.


HTML imageHandler( Void(a) fn, a dat, String alt, Int width=-1, Int height=-1, String attribs="" )


fn The image generating function

dat A parameter for the image generating function

alt The alternative text for the image

width The width of the image in pixels (optional)

height The height of the image in pixels (optional, but must be specified if width is specified)

attribs Additional image attributes (e.g. "title='Graph 1' id='gr1'" ) (this value is not filtered in any way, and so user-supplied data should not be used here).


Return the HTML to add an image to a page, where the image is generated by one of the functions in the CGI application.


Kaya standard library by Edwin Brady, Chris Morris and others ([email protected]). For further information see


The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.