Probelem about image size and dimensions
Diez B. Roggisch
deets at nospam.web.de
Thu Mar 23 07:39:25 EST 2006
ChengGong wrote:
> Diez,
>
> I asked the administrator that they won't allow me to import Image and
> PIL in Zope.
> I am wondering that how can I get the height and width and the size of
> the image in this situation?
> Can I just use <dtml>to get Image's addtributs?
No. At least not easily. You'd have to write the whole image-header loading
yourself. Which is certainly more than a two-week-old python coder is
capable of.
If I were you I'd pester your sysadmins to allow you to create an external
method - after all it is _their_ job to make you happy as a developer -
IMHO.
Diez
More information about the Python-list
mailing list