Bluehost.com Web Hosting $6.95

Getting the required GD Memmory Usage.

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-26-2003
William Bailey
 
Posts: n/a
Default 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/xOpKzSfrYDJMXmERAgcoAJ4werLQZqzEIoopAnmsUu0Xaz098Q CdGv/N
C7QxkYlaoya1To4PH76gmd0=
=ffjB
-----END PGP SIGNATURE-----
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 04:44 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0