This is a discussion on Getting the required GD Memmory Usage. within the PHP General forums, part of the PHP Programming Forums category; -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi All, I have a site that loads images with the built in GD ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
-----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/xOpKzSfrYDJMXmERAgcoAJ4werLQZqzEIoopAnmsUu0Xaz098Q CdGv/N C7QxkYlaoya1To4PH76gmd0= =ffjB -----END PGP SIGNATURE----- |