Getting the required GD Memmory Usage.

From: Date: Wed, 26 Nov 2003 18:00:42 +0000
Subject: Getting the required GD Memmory Usage.
Groups: php.general 
Request: Send a blank email to php-general+get-171114@lists.php.net to get a copy of this message
-----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-----

« previous php.general (#171114) next »