darkstardigital / phpThumbsUp

ModX package for creating dynamic image thumbnails
10 stars 7 forks source link

File size limit? #22

Closed shaunmorrison closed 11 years ago

shaunmorrison commented 11 years ago

Hello

I'm working on a Photographers site and this package seems perfectly suited for it. Is there a width/height/filesize limit? It seems when I make a width call above 1650 the image fails to generate. e.g.

[[+image:phpThumbsUp=`w=1650`]]

will work, but the following won't:

[[+image:phpThumbsUp=`w=1660`]]

Many thanks, Shaun

sdwespi commented 11 years ago

Hey Shaun,

There aren't any arbitrary restrictions on file or image size built in to phpThumbsUp, but there's a chance that the responsive thresholds are restricting your image size based on your device width. Does an image get generated that's smaller than 1660, or do you see something else? Is anything showing up in the error log? What is your phpthumbsup.responsive_threshold setting set to and how wide is the device you're using to view the website?

Thanks!

-Scott

shaunmorrison commented 11 years ago

Hi

phpthumbsup.responsive is set to no.

Unfortunately it appears to be a memory issue – this is from the logs.

[06-Nov-2013 17:58:00 Europe/London] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 6400 bytes) in /Users/filepath/public/core/model/phpthumb/phpthumb.functions.php on line 372

When the image goes over a certain amount of total pixels and you make too big-a-call with phpthumbsUp it doesn't like it. I don't suppose there's a good way to get around this?

jpdevries commented 11 years ago

Have you tried contacting your host about increasing max memory execution limit?

— Sent from Mailbox for iPhone

On Wed, Nov 6, 2013 at 10:01 AM, Shaun Morrison notifications@github.com wrote:

I phpthumbsup.responsive is set to no. Unfortunately it appears to be a memory issue – this is from the logs. [06-Nov-2013 17:58:00 Europe/London] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 6400 bytes) in /Users/filepath/public/core/model/phpthumb/phpthumb.functions.php on line 372

When the image goes over a certain amount of total pixels and you make too big-a-call with phpthumbsUp it doesn't like it. I don't suppose there's a good way to get around this?

Reply to this email directly or view it on GitHub: https://github.com/darkstardesign/phpThumbsUp/issues/22#issuecomment-27897362

shaunmorrison commented 11 years ago

Yes, doh – increased memory_limit in php.ini – if it's set to 64M it runs as expected. Thanks... it's been a long day!