[Zope] Use of the different displays with Imagemagick.
Ron Bickers
rbickers-dated-1021304562.9477cc@logicetc.com
Mon, 6 May 2002 11:42:43 -0400
> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
> William GARCIA
> Sent: Monday, May 06, 2002 2:57 AM
> To: zope@zope.org
> Subject: [Zope] Use of the different displays with Imagemagick.
> I would like to display a thumbnail with :<dtml-var
> expr="image(display='thumbnail')">
>
> but Zope generated the next error :
> Error Type: AttributeError
> Error Value: __call__
If you're trying to insert an <img> tag in your document to display the
thumbnail, you should use the tag() method as described in the README. So,
assuming the Photo object ID is 'image.jpg', try this:
<dtml with image.jpg>
<dtml-var expr="tag(display='thumbnail')">
</dtml-with>
You could also directly insert the html, like this:
<img src="image.jpg?display=thumbnail">
_______________________
Ron Bickers
Logic Etc, Inc.