You are here: Re: creating thumbs, weird colors... « PHP Language « IT news, forums, messages
Re: creating thumbs, weird colors...

Posted by srm on 05/24/05 17:57

Ron Eggler @ work wrote:

> srm wrote:
>> Ron Eggler wrote:
>>
>>> Hi,
>>>
>>> I'm creating thumbnails by following code. it works fine but the
>>> created thumbnails have weird colors, not like the original, why?:
>>
>> I had this problem when using the GD library. Switched to GD2 and it
>> went away. GD2 uses some slightly different functions that use
>> TrueColor.
>
> so I just have to install GD2 from
> http://www.boutell.com/gd/http/gd-2.0.33.tar.gz
> and the Problem should be away?
> Would be great if it was that easy :)
> I'm at work now, that's ehy I can't test it...:( (on our firewall the
> SSH-Port[22] is closed :( )

Well my systems (local and hosted sharing) had GD2 already installed. But
you have to use different functions - eg, imagecopyresampled instead of
imagecopyresized and imagecreatetruecolor instead of imagecreate.

--
@+

 

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

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