You are here: Re: Allowed memory size exhausted « PHP Programming Language « IT news, forums, messages
Re: Allowed memory size exhausted

Posted by d on 11/17/15 11:39

<f.amann@rona.at> wrote in message
news:1139498869.829399.70920@g44g2000cwa.googlegroups.com...
> thank you... the problem was that i just turned my brain on yet ;-)
>
> the factor i used was: $factor = $newWidth * $Pic[ 0 ][ ImgWidth ];
> but i want to resize, so the factor should be this: $factor = $newWidth
> / $Pic[ 0 ][ ImgWidth ];
>
> after debugging my $factor the newWidth and newHeight parameters for
> the imagecreatetruecolor command were correct!

Good work :)

Still - don't forget the imagedestroy() function, or caching your
thumbnails - they'll save you a LOT of work down the road.

dave

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация