Re: How to grayscale a gif using bit-swapping
- From: "C." <colin.mckinnon@xxxxxxxxx>
- Date: 22 Mar 2007 07:33:39 -0700
On 21 Mar, 18:27, Lars Erik Bryld <larse...@xxxxxxxxxxxxxxx> wrote:
<snip>
I am trying to convert a (supposedly) working python script into php.
The script reads a colour gif-picture and produces a greyscale copy of
it.
It would be safer to use GD. There's even an example of how to do this
at http://www.php.net/manual/en/function.imagecolorset.php
(FWIW, both the example above and your own code use an averaging
method to determine the grey scale; while color models vary, it might
be more approriate to measure the size of the orthognal vectors -
(integer)(sqrt($red*$red + $green*$green + $blue*$blue)*0.5769)
)
C.
.
- Follow-Ups:
- Re: How to grayscale a gif using bit-swapping
- From: Lars Erik Bryld
- Re: How to grayscale a gif using bit-swapping
- References:
- How to grayscale a gif using bit-swapping
- From: Lars Erik Bryld
- How to grayscale a gif using bit-swapping
- Prev by Date: Re: Access to a POP3 mailbox
- Next by Date: Went to an interview and got f**ked ... (OT)
- Previous by thread: Re: How to grayscale a gif using bit-swapping
- Next by thread: Re: How to grayscale a gif using bit-swapping
- Index(es):