PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Jul 22, 2019 8:20 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sat Mar 01, 2008 12:59 pm 
Offline
Forum Commoner

Joined: Sun Jun 01, 2003 12:33 am
Posts: 73
We have an instance where a client uploaded three large photos and the GD Library scripts are returning a red x for each of them while other, smaller, photos are performing as expected.

When we attempt to view the large photos via the GD script, we get a blank page however when we add the ini_set('display_errors', True); code, we see a little more about the problem with this error:

Notice: Undefined index: action in /vservers/12345ru/htdocs/resize_imageLT.php on line 5

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 12288 bytes) in /vservers/12345ru/htdocs/resize_imageLT.php on line 93

The image sizes in questions are:

w: 3072
h: 2040
filesize: 1.6mb

The idea behind the application we are developing is that the client needs a photo gallery where they can upload photos and have the photos appear as thumbnails but when clicked would display the full photo so the user can download it in a larger version, most cases the original high-res version, to use for printing purposes.

For examples of the problem:

The large image:
http://www.thelincolntable.org/site/ima ... 2X6912.jpg

The large image via the GD Library:
http://76.12.67.113/resize_imageLT.php? ... 12&ext=jpg

Another smaller image via the GD Library that works properly:
http://www.thelincolntable.org/site/ima ... _Malta.jpg

http://76.12.67.113/resize_imageLT.php? ... ta&ext=jpg

We contacted our hosting provider to see if they would increase the memory_limits in PHP however they will not increase it from 16MB. Anyone know of any workarounds to get this to work with high-res, large file size, photos?


Top
 Profile  
 
PostPosted: Sun Mar 02, 2008 4:55 pm 
Offline
Forum Commoner

Joined: Sun Jun 01, 2003 12:33 am
Posts: 73
Anyone got any ideas? Is this even possible without raising the memory_limits setting?


Top
 Profile  
 
PostPosted: Tue Mar 04, 2008 1:20 am 
Offline
Forum Commoner

Joined: Sun Jun 01, 2003 12:33 am
Posts: 73
Noone else has run into this problem?


Top
 Profile  
 
PostPosted: Tue Mar 04, 2008 2:10 am 
Offline
Site Administrator
User avatar

Joined: Sun May 19, 2002 10:24 pm
Posts: 6887
You'll need to get the host to increase the memory or switch hosts.

_________________
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group