Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

can attach detect image height and width

Quote Reply
can attach detect image height and width
Hi,

Does anyone know if the attach_file can determine the height and width of an image when it gets attached.

If so, when the image gets attached couldn't we do something like


fd = whatever the source would for this info.

like we do for type
$ft = $in->uploadInfo($fh) ? $in->uploadInfo($fh)->{'Content-Type'} : 'application/octet-stream';

Then add a field to the attach database called FileDimension and stick fd in there.

Anybody have any ideas on this? It would be really use full information.

I tried changing Content-Type to Content-Dimensions
Content-Dimension
Dimensions
Content_Structure
Structure

Is it available?


Thanks and peace.

Kyle
Subject Author Views Date
Thread can attach detect image height and width klangan 3322 Feb 4, 2000, 7:42 AM
Thread Re: can attach detect image height and width
Alex 3209 Feb 4, 2000, 8:44 AM
Post Re: can attach detect image height and width
Robert 3197 Nov 25, 2000, 10:37 PM
Post Re: can attach detect image height and width
klangan 3203 Feb 4, 2000, 6:14 PM
Post Re: can attach detect image height and width
pugdog 3197 Feb 5, 2000, 1:54 AM