Jump to content

Image resizer for HUGE images?


katlis

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/113347-image-resizer-for-huge-images/
Share on other sites

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?

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

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

 

 

Archived

This topic is now archived and is closed to further replies.

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