On Tue, Feb 13, 2001 at 10:37:46PM +0100, Emiliano wrote:
> Ingo Herz wrote:
> > 
> > Hi,
> > 
> > I need a way to get the size (X,Y) of images stored as an attachment of
> > an article. Is there a way to do something similar to GetImageSize() with a
> > blob? I have to do different layouts of a page depending on the number and
> > size of the attachment...
> 
> You'll have to store them as parameters to the attachment as you're
> storing it.
> An attachment is not guaranteed to be an image.

Of course an attachment can be of any type, but I could identify it
using $att->mimtype and get the size if it is an image. As my client
will use asgard to admin articles and I don't like to modify this
(every update would be an adventure) I think the work has to be done 
in the resulting page. 

Ingo

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to