Jump to content

php thumbnail on upload


Dave516

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.