Dave516 Posted August 16, 2008 Share Posted August 16, 2008 How would I go about taking a small thumbnail of the large picture that im uploading, and save it as another? the php image library (GD) doesnt work because the image is too big (resulting in some kind of overload error), im fairly sure you can change this in php.ini but I dont have access to it. thanks ~Dave Quote Link to comment https://forums.phpfreaks.com/topic/119998-php-thumbnail-on-upload/ Share on other sites More sharing options...
ignace Posted August 16, 2008 Share Posted August 16, 2008 if you don't have access to the memory_limit directive then there is no way for you to upload big images and you shall have to tell your users to upload images under a certain filesize and deny all images that are to big Quote Link to comment https://forums.phpfreaks.com/topic/119998-php-thumbnail-on-upload/#findComment-618126 Share on other sites More sharing options...
Dave516 Posted August 16, 2008 Author Share Posted August 16, 2008 well, I can upload them fine, whenever I try to use a gd function is the overload error. Quote Link to comment https://forums.phpfreaks.com/topic/119998-php-thumbnail-on-upload/#findComment-618130 Share on other sites More sharing options...
chronister Posted August 17, 2008 Share Posted August 17, 2008 I have ran into this before and I simply made it so the images were reduced before upload. I was uploading hi-res images (over 2800px) and the files were > 3MB. Set a limit to the size of image to be uploaded, make the users responsible for it. Maybe not the best solution, but it worked for me. I found this with a quick search. ini_set( 'memory_limit' , 100000000); // set to 100mb ini_restore('memory_limit'); //restore back to default I found this in the following post at another forum. http://forums.devnetwork.net/viewtopic.php?p=240870 Quote Link to comment https://forums.phpfreaks.com/topic/119998-php-thumbnail-on-upload/#findComment-618314 Share on other sites More sharing options...
Dave516 Posted August 17, 2008 Author Share Posted August 17, 2008 ah well, thank you, but I just made it so that the image would become the background (css background-image) of a div with a border around it so it looked like a screen shot Quote Link to comment https://forums.phpfreaks.com/topic/119998-php-thumbnail-on-upload/#findComment-618371 Share on other sites More sharing options...
chronister Posted August 17, 2008 Share Posted August 17, 2008 Ok, I guess I fail to see how this solves the problem you were describing earlier but if it works for you then cool. Quote Link to comment https://forums.phpfreaks.com/topic/119998-php-thumbnail-on-upload/#findComment-618378 Share on other sites More sharing options...
Dave516 Posted August 17, 2008 Author Share Posted August 17, 2008 I wanted to display a thumbnail (cropped image) and I thought that using php's gd library I could take a thumb nail and save it.. turns out, I didnt have to. I can just do it through css... http://dynamixco.com/mariasphotos/photos/ was my project. you can see and click on the photos Quote Link to comment https://forums.phpfreaks.com/topic/119998-php-thumbnail-on-upload/#findComment-618572 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.