Although I don't know how to do this myself, one of the places I've seen
it done is in JpGraph (www.aditus.nu).

The function that does it is AdjBackgroundImage($bright, $contrast,
$saturation) in jpgraph.php.  You could try taking a look at the source?

Pete.

Dimitar Haralanov wrote:
> 
>         Hi,
> 
>         I hope this is the right newsgroup for this so if it is not, please,
> excuse me.
>         I would like to be able to change the brightness of an image using PHP.
> Here are some more detiails: I would like to load a jpeg file from a
> webpage, change the brightness of the image, and save it back to a file.
>         I am pretty sure how to load and save the file but I can not figure out
> how to change the brightness.
>         I am using PHP 4.1.2.
> 
>         Thanx
>                 -- Mitko
> 
> --
> ---------------------------------------------------
> To reply remove all CAPS letters from email address
> ---------------------------------------------------
> The little town that time forgot,
> Where all the women are strong,
> The men are good-looking,
> And the children above-average.
>                 -- Prairie Home Companion
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to