|
Posted by Charlie King on 10/14/42 11:35
On 23 Dec 2005 11:55:47 -0800, in
<1135367747.909658.106790@g47g2000cwa.googlegroups.com>
(comp.lang.php) "Chung Leong" <chernyshevsky@hotmail.com> wrote:
> Use the VariableStream class given as an example here:
>
> http://fi.php.net/manual/en/function.stream-wrapper-register.php
Thanks, to you and Sean, for your ideas - I'll try them both out: the
more strings to my bow the better! :)
As it happens, shortly after posting, I found the tool that I needed
for the script I had already built: imagecreatefromstring();
Following on from the example in my first post, now I can do
$im = imagecreatefromstring($photo);
which lets me
$photoWidth = imagesx($im);
$photoHeight = imagesy($im);
list($width, $height, $type, $attr) =getimagesize($im);
etc.,
Although Sean's point about using the filesystem to store images, and
the database to reference them, seems like a good one given the 2048k
limit I have on LONGBOOLs in MySQL...
Cheers all
--
Charlie
[Back to original message]
|