Jump to content

gd library convert LARGE image DIMENSIONS


Recommended Posts

Hello I am trying to allow users to upload images, that then get resized.

I am using the gd library to do this.

Problem if an image dimensions is too big it does not get converted.

This is aparently down to the fact that the server does not have enough memory aloocated to do the convertion...

Are their other programs like ImageMagik that could do the convertion but use less memory...

i.e. how do sites like redbubble allow users to resize images that are upto 8000pixels in dimensions?

kind regards J

I think if you look in your php ini file you will see an option for max upload file limit. You can change this to a larger size.

But if you dont have unlimited webhosting I would recommend to limit the upload limit, and just ask users to make their images smaller. So i dont think the problem is with gd2.

No it is definately to do with the memory not the file_upload_size...

my file_upload is upto 200Mb, plus the image is being uploaded, it just isn't getting converted nto thumbnails... Again the actual file size isn't the problem it is the image dimensions... gd seems to have a problem with opening the file if the image has large dimensions... any other ideas?

If you increase the memory limit to 1024 it allows you to use gd library on images ith dimensions of upto 5000 pixels, problem is im on a shared server.. the limit is 64Mb memory limit... anyone want to pay for me to go dedicated? cheers J

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.