473,659 Members | 3,605 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 1724
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*****@invali d.invalid> ha scritto nel messaggio
news:BEAA5A65.3 10CF%in*****@in valid.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*****@invali d.invalid> ha scritto nel messaggio
news:BEAA5A65.3 10CF%in*****@in valid.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**********@n ews.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*****@invali d.invalid> ha scritto nel messaggio
news:BEAA5A65.3 10CF%in*****@in valid.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
6462
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 up to this point. Some of the applications are class libraries which need to be callable via the COM interface from some of the older applications. Could someone please explain to me the issues involved in deploying such a class library?
3
4261
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 active? Can the setting of LD_LIBRARY_PATH guanrantee that the correct one is executed? 2> In MS-WINDOWS, once a DLL is loaded by one allication, this DLL will be used by the subsequent appication. Does UNIX have the same
1
7093
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 deployment on Jan 2, 2004 got following messages and errors... I reset everything and tried several times agian. Then erased the setup project and tried to rebuild a new one with the same errors. PLease note... ALL this this code ran perfectly five minutes...
10
1805
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 several features to it. Readers now quit when they've read all the books in the Library. Books know how many times they've been read. Best of all, you can now create your own list of books to read! Again, the point of all this is to get used to...
10
2679
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 .NET2003. also, when I do not try to link the fortran library (just to see if that was the cause), it builds the exe without any problems. i don't even know how to begin addressing this problem...any help would be
20
5217
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 used various techniques ( loop unrolling, loop jamming...) and tried some matrix libraries : newmat (slow for large matrix) , STL (fast but ..not usefull) , hand coding (brain consuming...), and recently Meschach...
6
17009
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 as "Additional Dependencies" under Linker-Input options. Since those libraries are also in different directory, I specified that library path in project as "Additional Library Directories" under Linker-General options. This is where I see some...
0
4076
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 up and stores the text being fed to it. Finally the LibrayBuilder is able to produce a Library which is the topic of this part of the article. Introduction
0
3494
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 discusses the internals of the Library class a bit more. Sections again A previous article part showed how Sections work, i.e. a group Section refers to book Sections, a book Section refers to chapter Sections and the latter refer
16
3270
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
8337
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7359
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6181
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5650
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4175
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2754
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1978
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.