Alan Knowles wrote:
> mmh, I had a quick look at this, the bigger issue is that there is no 'obvious
> place to store this' however a simple hack may be possible.
>
> the Framed Admin 1b1 / dhtml / nodhtmlpickimage_attach page deals with the
> upload of the file,
> by adding a line before
> $att = $object->createattachment($filename,$filename,$$typename);
>
> doing something like
> if (ereg("\.gif$", $filename)) then
> $size = GetImageSize($filename);
> $filename .= "___ ". $size[1];
> }
> this would append this information to the name tag of the attachment.. (it
> could be added to the title instead) - althought the best alternative would
> be an additional field in the blobs table.
$att = $object->createattachment($filename,$filename,$typename);
$size = GetImageSize($filename);
...
$att = mgd_get_attachment($att);
$att->parameter('size', 'x', $size[0]);
$att->parameter('size', 'y', $size[1]);
If you later would do
$att = mgd_get_attachment($id);
you would have $att->size_x and $att->size_y available.
Emile
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]