jonniejoejonson Posted May 3, 2009 Share Posted May 3, 2009 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 Link to comment https://forums.phpfreaks.com/topic/156657-gd-library-convert-large-image-dimensions/ Share on other sites More sharing options...
fry2010 Posted May 3, 2009 Share Posted May 3, 2009 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. Link to comment https://forums.phpfreaks.com/topic/156657-gd-library-convert-large-image-dimensions/#findComment-824890 Share on other sites More sharing options...
jonniejoejonson Posted May 3, 2009 Author Share Posted May 3, 2009 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? Link to comment https://forums.phpfreaks.com/topic/156657-gd-library-convert-large-image-dimensions/#findComment-824901 Share on other sites More sharing options...
jonniejoejonson Posted May 3, 2009 Author Share Posted May 3, 2009 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 Link to comment https://forums.phpfreaks.com/topic/156657-gd-library-convert-large-image-dimensions/#findComment-824937 Share on other sites More sharing options...
fry2010 Posted May 3, 2009 Share Posted May 3, 2009 so as i said before your problem isnt with GD2 its with the upload limit. Those are the two options you have, increase limit upload (which you cant do cause shared hosting), or limit the size your users can upload. Link to comment https://forums.phpfreaks.com/topic/156657-gd-library-convert-large-image-dimensions/#findComment-825088 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.