473,503 Members | 1,360 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

GD Library

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
4 1716
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
6442
by: pieter.breed | last post by:
Hi All, The company I work for has traditionally used COM/ActiveX for the solutions that it provides. We are in the process of moving to .NET and a few applications have been written in VB.NET...
3
4246
by: K.S.Liang | last post by:
Hi all, 1> If there are more than one dynamic linking libraries in the file system, how do I know which one is loaded into system? Any C library or system call can tell me which *.so or *.sl is...
1
7077
by: Jim | last post by:
Have fully operational software package developed on VB.NET that worked until Jan 1 2003, with early stage deployments on Oct 10, Oct 23, Nov 11, Dec 12 and Dec 30. When attempted final...
10
1788
by: mwt | last post by:
So in a further attempt to learn some Python, I've taken the little Library program (http://groups.google.com/group/comp.lang.python/browse_thread/thread/f6a9ccf1bc136f84) I wrote and added...
10
2653
by: Julian | last post by:
I get the following error when i try to link a fortran library to a c++ code in .NET 2005. LINK : fatal error LNK1104: cannot open file 'libc.lib' the code was working fine when built using...
20
5184
by: Frank-O | last post by:
Hi , Recently I have been commited to the task of "translating" some complex statistical algorithms from Matlab to C++. The goal is to be three times as fast as matlab ( the latest) . I've...
6
16989
by: =?Utf-8?B?WW9naSBXYXRjaGVy?= | last post by:
Hello, I am using Visual Studio-2003. I created a project to build my library. Since I am using third party libraries as well, I have specified those additional library dependencies in project...
0
4065
by: JosAH | last post by:
Greetings, the last two article parts described the design and implementation of the text Processor which spoonfeeds paragraphs of text to the LibraryBuilder. The latter object organizes, cleans...
0
3479
by: JosAH | last post by:
Greetings, welcome back; above we discussed the peripherals of the Library class: loading and saving such an instantiation of it, the BookMark interface and then some. This part of the article...
16
3255
by: Xiaoxiao | last post by:
Hi, I got a C library, is there a way to view the public function names in this library so that I can use in my C program? Thanks.
0
7339
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6995
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7463
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5581
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5017
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4678
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3157
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
389
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.