[Zope] Re: Generating thumbnails on the fly using PIL

Geir Bækholt Geir Bækholt <geirh@funcom.com>
Wed, 28 Nov 2001 09:22:45 +0100


on or about, Tuesday, November 27, 2001, we have reason to believe that Pie=
ter Claerhout wrote something along the lines of :
PC> Hi all,
[snip]
PC> this all works find if you use it as:
PC> <dtml-var "PHTO_MakeThumb('AB_action_inbox.jpg', 160, 120)">
PC> As soon as you want to do something like:
PC> <dtml-var "PHTO_MakeThumb('/images/AB_action_inbox.jpg', 160, 120)">
PC> you get an AttributeError. Does anybody has a way around this=3F
PC> Cheers,

Cheers to you to , Pieter .

You cannot do traditional directory addressing with slashes in dtml.
try something like :

<dtml-with images>
<dtml-var "PHTO_MakeThumb('AB_action_inbox.jpg', 160, 120)">
</dtml-with>


good luck :-)


--=20
Geir B=E6kholt                      web-developer
geirh@funcom.com             funcom oslo | webdev-team