|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Image Helper memory usage fatal errorHello All, hoping someone can point out the why I keep getting a memory error at line 59 of image helper, it is using a ridiculous amount of memory. The helper is posted here: http://bin.cakephp.org/view/859527090 Using nightly build 6296 (just grabbed it yesterday), cakephp 1.2 rc1 Thanks much for any insight you can provide. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@... To unsubscribe from this group, send email to cake-php-unsubscribe@... For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Image Helper memory usage fatal errorYou should use rc2 ;-) By the way, what is the image size you try to resize ? On Jul 7, 3:34 pm, clrockwell <ch...@...> wrote: > Hello All, hoping someone can point out the why I keep getting a > memory error at line 59 of image helper, it is using a ridiculous > amount of memory. > > The helper is posted here:http://bin.cakephp.org/view/859527090 > > Using nightly build 6296 (just grabbed it yesterday), cakephp 1.2 rc1 > > Thanks much for any insight you can provide. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@... To unsubscribe from this group, send email to cake-php-unsubscribe@... For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Image Helper memory usage fatal errorThanks francky06l - I am actually using rc2, sorry for the typo. The images were originally as large as 3M, but I have resized them all down to less than 2MB and the issue still occurs. I also re-exported them as jpg as they were originally exported with cmyk color. The issue is less prevalent, but still occuring. I am starting to think the root of the problem is a virtual memory issue on the vps side of things. I appreciate any direction or shared experience anyone has with this. Thanks for any direction On Jul 7, 5:38 pm, francky06l <franckl...@...> wrote: > You should use rc2 ;-) > By the way, what is theimagesize you try to resize ? > > On Jul 7, 3:34 pm, clrockwell <ch...@...> wrote: > > > Hello All, hoping someone can point out the why I keep getting a > > memory error at line 59 ofimagehelper, it is using a ridiculous > > amount of memory. > > > Thehelperis posted here:http://bin.cakephp.org/view/859527090 > > > Using nightly build 6296 (just grabbed it yesterday), cakephp 1.2 rc1 > > > Thanks much for any insight you can provide. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@... To unsubscribe from this group, send email to cake-php-unsubscribe@... For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Image Helper memory usage fatal errorWell try with smaller images. Also what is your memory_limit set in php.ini ? Maybe try an ini_set('memory_limit', xxMb), before calling the resizing .. On Jul 8, 3:29 pm, clrockwell <ch...@...> wrote: > Thanks francky06l - I am actually using rc2, sorry for the typo. > > The images were originally as large as 3M, but I have resized them all > down to less than 2MB and the issue still occurs. I also re-exported > them as jpg as they were originally exported with cmyk color. The > issue is less prevalent, but still occuring. I am starting to think > the root of the problem is a virtual memory issue on the vps side of > things. > > I appreciate any direction or shared experience anyone has with this. > > Thanks for any direction > > On Jul 7, 5:38 pm, francky06l <franckl...@...> wrote: > > > You should use rc2 ;-) > > By the way, what is theimagesize you try to resize ? > > > On Jul 7, 3:34 pm, clrockwell <ch...@...> wrote: > > > > Hello All, hoping someone can point out the why I keep getting a > > > memory error at line 59 ofimagehelper, it is using a ridiculous > > > amount of memory. > > > > Thehelperis posted here:http://bin.cakephp.org/view/859527090 > > > > Using nightly build 6296 (just grabbed it yesterday), cakephp 1.2 rc1 > > > > Thanks much for any insight you can provide. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@... To unsubscribe from this group, send email to cake-php-unsubscribe@... For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Image Helper memory usage fatal errorJust throwing it out there.... but what if the helper was modified to use ImageMagick from the commandline, instead of GD? In my experience, ImageMagick is a lot more capable in handling large images (not to mention, it uses its own memory space, instead of PHP's). Also, it can handle pretty much any image format you can throw at it. On Jul 8, 7:57 pm, francky06l <franckl...@...> wrote: > Well try with smaller images. Also what is your memory_limit set in > php.ini ? > Maybe try an ini_set('memory_limit', xxMb), before calling the > resizing .. > > On Jul 8, 3:29 pm, clrockwell <ch...@...> wrote: > > > Thanks francky06l - I am actually using rc2, sorry for the typo. > > > The images were originally as large as 3M, but I have resized them all > > down to less than 2MB and the issue still occurs. I also re-exported > > them as jpg as they were originally exported with cmyk color. The > > issue is less prevalent, but still occuring. I am starting to think > > the root of the problem is a virtual memory issue on the vps side of > > things. > > > I appreciate any direction or shared experience anyone has with this. > > > Thanks for any direction > > > On Jul 7, 5:38 pm, francky06l <franckl...@...> wrote: > > > > You should use rc2 ;-) > > > By the way, what is theimagesize you try to resize ? > > > > On Jul 7, 3:34 pm, clrockwell <ch...@...> wrote: > > > > > Hello All, hoping someone can point out the why I keep getting a > > > > memory error at line 59 ofimagehelper, it is using a ridiculous > > > > amount of memory. > > > > > Thehelperis posted here:http://bin.cakephp.org/view/859527090 > > > > > Using nightly build 6296 (just grabbed it yesterday), cakephp 1.2 rc1 > > > > > Thanks much for any insight you can provide. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@... To unsubscribe from this group, send email to cake-php-unsubscribe@... For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free Forum Powered by Nabble | Forum Help |