katlis Posted July 5, 2008 Share Posted July 5, 2008 I've tried a few scripts such as TimThumb, Smart Image Resizer, PHP Image Resize Script, etc... I've tried very simple imagecopyresampled scripts... They all work... with regular sized images. But I can't get ANYTHING to work with images over ~2mb. It'll just give me a 500 error. What do I use to handle huge image resizing? Quote Link to comment Share on other sites More sharing options...
DarkWater Posted July 5, 2008 Share Posted July 5, 2008 Photoshop? Quote Link to comment Share on other sites More sharing options...
katlis Posted July 5, 2008 Author Share Posted July 5, 2008 Is there a new Photoshop PHP extension I haven't heard about? I have users uploading these large photos. Quote Link to comment Share on other sites More sharing options...
DarkWater Posted July 5, 2008 Share Posted July 5, 2008 Link me to one of the images please. I'll try resizing on my server. It may just be a memory limit thing. Quote Link to comment Share on other sites More sharing options...
katlis Posted July 5, 2008 Author Share Posted July 5, 2008 http://californiasporthorse.com/photos/30/1.jpg Quote Link to comment Share on other sites More sharing options...
DarkWater Posted July 5, 2008 Share Posted July 5, 2008 Worked for me just fine with the Image effects class I created a few weeks ago. http://96.224.250.205:6969/tests/imageresize.php Yeah. @_@ Quote Link to comment Share on other sites More sharing options...
DarkWater Posted July 5, 2008 Share Posted July 5, 2008 And it might take a few seconds to load since it's such a huge file. Normal sized files load instantly. =P Quote Link to comment Share on other sites More sharing options...
katlis Posted July 5, 2008 Author Share Posted July 5, 2008 Looks good, is the source available? I was using TimThumb: http://www.darrenhoyt.com/2008/04/02/timthumb-php-script-released/ When asked if it could handle images over 3mb, the creator said "It's not currently equipped to handle hi-res images that big." What's the secret? Quote Link to comment Share on other sites More sharing options...
DarkWater Posted July 5, 2008 Share Posted July 5, 2008 Umm....careful coding? And mine isn't just resizing. I can do all sorts of things with it. http://96.224.250.205:6969/tests/showimages.html I'm going to release the class pretty soon. It can handle any image file and it automatically sorts it all out (with clever use of imagecreatefromstring()) and outputs or saves it very easily. @_@ I just want to make sure everything works with it. For example, I needed to fix a tiny bug yesterday. =P Quote Link to comment Share on other sites More sharing options...
katlis Posted July 5, 2008 Author Share Posted July 5, 2008 Welp, can anyone else help with my original question? Quote Link to comment Share on other sites More sharing options...
DarkWater Posted July 5, 2008 Share Posted July 5, 2008 When I release it, I'll PM you, okay? @_@ Sorry about that. Quote Link to comment Share on other sites More sharing options...
Wuhtzu Posted July 5, 2008 Share Posted July 5, 2008 Link me to one of the images please. I'll try resizing on my server. It may just be a memory limit thing. Look into memory limit of your PHP setup... simple image resizing scripts (if coded correctly) can handle images of any size but only if PHP has sufficient memory at it's disposal. Try running your code on a local php setup (use for example http://www.apachefriends.org/en/xampp.html) and increase your memory limit and max_execution_time. I have never had issues with images too big and I've trying 6000x4000 pixel images, should work just fine... 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.