Class: Image | Zope-2.2.1-src/lib/python/Products/OFSP/help/Image.py | |||||
---|---|---|---|---|---|---|
A Image is a Zope object that contains image content. A Image object can be used to upload or download image information with Zope. Image objects have two properties the define their dimension,
Examples: Using a Image object in Zope is easy. The most common usage is to display the contents of an image object in a web page. This is done by simply referencing the object from DTML: <dtml-var standard_html_header> <dtml-var ImageObject> <dtml-var standard_html_footer> This will generate an HTML IMG tag referencing the URL to the Image. This is equivalent to: <dtml-var standard_html_header> <dtml-with ImageObject> <img src="<dtml-var absolute_url>"> </dtml-with> <dtml-var standard_html_footer> You can control the image display more precisely with the <dtml-var "ImageObject.tag(border=5, align=left)">
|