tryingtolearn Posted June 7, 2007 Share Posted June 7, 2007 Does anyone know if there is a size limit that would prevent a thumbnail from being created with GDlib? I am creating thumbnails on the fly If I load a 600 by 600 image it works but say I load a large image 2288x1712 I dont get the thumb - just a broken image. Just wondering if there would be setting that blocks this. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted June 7, 2007 Share Posted June 7, 2007 if you are creating an image from an uplod file make sure the file you are uploading does not exceeed the upload_max_filesize php ini setting. Quote Link to comment Share on other sites More sharing options...
tryingtolearn Posted June 7, 2007 Author Share Posted June 7, 2007 It is under the max filesize. The image gets uploaded - it just doesnt create the thumb, I just get the broken image. (Im assuming that if the file exceeds the max file size it wont upload - am I wrong in that assumption?) I started using thumbs up http://www.gerd-tentler.de/tools/ When I noticed it happening I thought maybe it was something with that - but it does the same thing with a basic resize script also. I dont get it Quote Link to comment Share on other sites More sharing options...
tryingtolearn Posted June 7, 2007 Author Share Posted June 7, 2007 Seems the problem is with the memory_limit setting, It was set to 20M I added an .htaccess line php_value memory_limit 30M And it thumbnails the large images Any drawbacks to doing this? Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted June 7, 2007 Share Posted June 7, 2007 You will use a larger portion of you systems resources but I doubt it will be noticed... Quote Link to comment Share on other sites More sharing options...
tryingtolearn Posted June 8, 2007 Author Share Posted June 8, 2007 OK thanks Havent noticed a differentce yet. Quote Link to comment 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.