Image Helper memory usage fatal error

View: New views
5 Messages — Rating Filter:   Alert me  

Image Helper memory usage fatal error

by clrockwell@truckingshow.com-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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 error

by francky06l :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


You 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 error

by clrockwell@truckingshow.com-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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 error

by francky06l :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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


Re: Image Helper memory usage fatal error

by Dave J-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Just 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
-~----------~----~----~----~------~----~------~--~---

LightInTheBox - Buy quality products at wholesale price