RE: [PHP] Getting the required GD Memmory Usage.
| From: | Vail, Warren | Date: | Wed, 26 Nov 2003 18:13:34 +0000 |
| Subject: | RE: [PHP] Getting the required GD Memmory Usage. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-171116@lists.php.net to get a copy of this message | ||
If the manual at php.net is too busy you can try;
http://www.zend.com/manual/function.filesize.php
good luck,
Warren Vail
-----Original Message-----
From: William Bailey [mailto:wb@pro-net.co.uk]
Sent: Wednesday, November 26, 2003 10:01 AM
To: php-general@lists.php.net
Subject: [PHP] Getting the required GD Memmory Usage.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi All,
I have a site that loads images with the built in GD functions. Most
of
the images are small and load fine however there are a few images that
are large and when trying to load them causes php to exit with the
unable to allocate memory message. I was wondering if anybody knows of a
way to look at a file (in this case a JPEG) and then calculate the
memory requirements required for GD to load it.
I know that i can just set the memory limit value to a higher value
but
i don't want to load these large images anyway so if i could work out
the GD memory requirement without having to load the image it would be
most useful.
- --
Regards,
William Bailey.
Pro-Net Internet Services Ltd.
http://www.pro-net.co.uk/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE/xOpKzSfrYDJMXmERAgcoAJ4werLQZqzEIoopAnmsUu0Xaz098QCdGv/N
C7QxkYlaoya1To4PH76gmd0=
=ffjB
-----END PGP SIGNATURE-----
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php