By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,406 Members | 1,470 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,406 IT Pros & Developers. It's quick & easy.

GD Library

P: n/a
M
Hallo NG,
I have problem creating automatic thumbnails from image of size 2200*1700
pixel, if I scale the same image to 1000*x pixel thumbnails creation works
good.
Someone knows if it's a limit of GD library version 2.0.28 or a lack on
server setup?
Thanks.
Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
M wrote:
Hallo NG,
I have problem creating automatic thumbnails from image of size 2200*1700
pixel, if I scale the same image to 1000*x pixel thumbnails creation works
good.
Someone knows if it's a limit of GD library version 2.0.28 or a lack on
server setup?
Thanks.


This isn't a limitation of the GD library. You're just using up all the
memory available to PHP.

(Hint: 2000 x 1700 x 24 bits per pixel for a full-colour image = almost 80
megabytes)

Perhaps there's something in php.ini that you can adjust to give it more
memory?

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
Jul 17 '05 #2

P: n/a
M
Thanks for the reply, I suppose that too reading old news from here.
I'll post here if I find the solution.

"Philip Ronan" <in*****@invalid.invalid> ha scritto nel messaggio
news:BEAA5A65.310CF%in*****@invalid.invalid...
M wrote:
Hallo NG,
I have problem creating automatic thumbnails from image of size 2200*1700
pixel, if I scale the same image to 1000*x pixel thumbnails creation
works
good.
Someone knows if it's a limit of GD library version 2.0.28 or a lack on
server setup?
Thanks.


This isn't a limitation of the GD library. You're just using up all the
memory available to PHP.

(Hint: 2000 x 1700 x 24 bits per pixel for a full-colour image = almost 80
megabytes)

Perhaps there's something in php.ini that you can adjust to give it more
memory?

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/

Jul 17 '05 #3

P: n/a
M
Now I know that memory allocation for PHP is set to 12MB. So that is the
problem.
"M" <th*****@ngi.it> ha scritto nel messaggio
news:d6**********@news.ngi.it...
Thanks for the reply, I suppose that too reading old news from here.
I'll post here if I find the solution.

"Philip Ronan" <in*****@invalid.invalid> ha scritto nel messaggio
news:BEAA5A65.310CF%in*****@invalid.invalid...
M wrote:
Hallo NG,
I have problem creating automatic thumbnails from image of size
2200*1700
pixel, if I scale the same image to 1000*x pixel thumbnails creation
works
good.
Someone knows if it's a limit of GD library version 2.0.28 or a lack on
server setup?
Thanks.


This isn't a limitation of the GD library. You're just using up all the
memory available to PHP.

(Hint: 2000 x 1700 x 24 bits per pixel for a full-colour image = almost
80
megabytes)

Perhaps there's something in php.ini that you can adjust to give it more
memory?

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/


Jul 17 '05 #4

P: n/a
In article <d6**********@news.ngi.it>, "M" <th*****@ngi.it> wrote:
Now I know that memory allocation for PHP is set to 12MB. So that is the
problem.
"M" <th*****@ngi.it> ha scritto nel messaggio
news:d6**********@news.ngi.it...
Thanks for the reply, I suppose that too reading old news from here.
I'll post here if I find the solution.

"Philip Ronan" <in*****@invalid.invalid> ha scritto nel messaggio
news:BEAA5A65.310CF%in*****@invalid.invalid...
M wrote:

Hallo NG,
I have problem creating automatic thumbnails from image of size
2200*1700
pixel, if I scale the same image to 1000*x pixel thumbnails creation
works
good.
Someone knows if it's a limit of GD library version 2.0.28 or a lack on
server setup?
Thanks.

This isn't a limitation of the GD library. You're just using up all the
memory available to PHP.

(Hint: 2000 x 1700 x 24 bits per pixel for a full-colour image = almost
80
megabytes)

Perhaps there's something in php.ini that you can adjust to give it more
memory?


I've had the same problem. I used to use a gallery that used netpbm
instead of GD and I seem to recall that it handled fines with no problem.

--
Andy Jacobs
www.redcatmedia.net
Intelligent Websites For Intelligent Business People
Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.