[Zope] How to call image metadata using LocalFS?

Jonothan Farr jfarr@real.com
Wed, 25 Apr 2001 11:48:42 -0700


Should be able to do it like this (untested):

<dtml-in "LocalFiles.fileValues()">
    <dtml-with "_['sequence-item'].getObject()">
        <dtml-if "meta_type=='Image'">
            width: <dtml-var width>
            height: <dtml-var height>
        </dtml-if>
    </dtml-with>
</dtml-in>

----- Original Message ----- 
From: "Ausum" <augusto@artlover.com>
To: <zope@zope.org>
Sent: Wednesday, April 25, 2001 10:55 AM
Subject: [Zope] How to call image metadata using LocalFS?


> When iterating over image files within a LocalFS folder,  I'd like to expose
> their width and height sizes.
> Although LocalFS file objects can't store user-defined metadata for the time
> being, it's possible to see an image's width and height values at its
> properties tab. 
> I've read the how to on "Using DTML With Local File System Objects" but I
> couldn't find the solution there. 
> Is it possible to call the width and height values of an image item, from a
> LocalFs iterate procedure?
> 
> Thanks in advance,
> 
> 
> Ausum
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
> 
>