473,320 Members | 2,133 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

maximum size for imagecreatetruecolor()??

there seems to be a maximum size (in px) for images created with
imagecreatetruecolor (somewhere between 4000 px and 4500 px). if the
image is bigger than that size, the browser doesn't display it but
reports errors in the image.

is this maximum size inbuilt into php?

or

does it depend on my server config and if yes how can i read it?
tia, micha

Jul 17 '05 #1
2 6634
ch*********@web.de wrote:
there seems to be a maximum size (in px) for images created with
imagecreatetruecolor (somewhere between 4000 px and 4500 px). if the
image is bigger than that size, the browser doesn't display it but
reports errors in the image.

is this maximum size inbuilt into php?

or

does it depend on my server config and if yes how can i read it?
tia, micha


A full-colour 4096x4096 image occupies 48 MB (or 64 MB it it has an alpha
channel). My guess is this problem is not so much to do with a maximum image
size but rather the amount of memory allocated to the running of your
website. Either talk to your web hosts about getting it increased, or stop
using such enormous images.

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

Philip Ronan wrote:
ch*********@web.de wrote:
there seems to be a maximum size (in px) for images created with
imagecreatetruecolor (somewhere between 4000 px and 4500 px). if the image is bigger than that size, the browser doesn't display it but
reports errors in the image.

is this maximum size inbuilt into php?

or

does it depend on my server config and if yes how can i read it?
tia, micha

A full-colour 4096x4096 image occupies 48 MB (or 64 MB it it has an

alpha channel). My guess is this problem is not so much to do with a maximum image size but rather the amount of memory allocated to the running of your
website. Either talk to your web hosts about getting it increased, or stop using such enormous images.

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

yes, that occurred to me after posting. i had not thought about memory
at all, just followed the manuals recommendation to use
imagecreatetruecolor() instead of imagecreate(), even if i don't really
need true color images. works fine now with imagecreate.

thnaks, micha

Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Kums | last post by:
What is the maximum permissible size of a database? Is there any limitation. What is the maximum # of tablespace's allowed in a database? Thanks for your response.
4
by: Gregory Hassett | last post by:
Hello, Does anyone know how to get the maximum size of a datagram for a UDP Socket created via .NET's System.Net.Sockets.Socket class? Thanks!
3
by: f.amann | last post by:
hi there! i save images in a mysql db and i wrote a script called getimage.php to display them. in my getimage.php i want to resize my images to display them as thumbnails but there always...
12
by: comp.lang.php | last post by:
index.php: // STUFF // STEP 1: imagecreatetruecolor ONLY IF GD 2.0+ SUPPORTED AND FOUND if ($this->isSuccessful && !$hasMogrified && $image && !$newImage &&...
3
by: Madmartigan | last post by:
Hello I have the following task but am battling with the final output. How do I keep two different vectors in sync and how would I retrieve the index for the maximum value of one of the vectors??...
1
by: jungabunga | last post by:
heya guys, im trying to take a variable input file and make a thumbnail so my gallery pageloads are lower. i want all the thumbnails to end up around 15ish kb, i know my current settings dont...
2
by: Woody Ling | last post by:
I am now using db2 v8.2 64bits without DPF. I want to create a very large table which is about 1000G and the record length is suitable for 32K page size. I find in the manual that the maximum size...
2
choke
by: choke | last post by:
I need to write a function in devc++ that creates an array of n integers, each element is equal to n*n+i*i-n*i where i is from 0 to n-1 as the array index. Within the same function I need to find...
1
by: RYKLOU | last post by:
I am kinda new to php, but i do know what i am doing kinda, but i came across this error when i am trying to upload a file to my website. Fatal error: Allowed memory size of 8388608 bytes...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.