Jump to content


Photo

unique image effects like auto levels


  • Please log in to reply
2 replies to this topic

#1 ultrus

ultrus
  • Members
  • PipPipPip
  • Advanced Member
  • 244 posts

Posted 14 September 2006 - 11:05 PM

Hi all,
Here's a question with low priority. Can the GD2 library or other methods on the server apply advanced effects to images? One effect that I am interested in is "auto levels", like in Photoshop. Not to compare with Photoshop, but there are times when it would be nice to optimize the RGB spectrum of an image. Make the blacks blacker and whites whiter to a point where the script sees fit.

One application would be adjusting webcam images. The cheaper cameras always make crappy greyish looking images. A simple auto level effect would help on the fly in a php script.

I know there are some effect scripts out there for colorizing images. php.net has a sample posted on the page containing the image function. Any ideas on where to start? It's making my head spin, but I'm looking into the possibilities.

Thanks much.  ;D
Twitter | Blog | Worlds to explore. Worlds to create.

#2 Barand

Barand
  • Moderators
  • Sen . ( ile || sei )
  • 18,017 posts

Posted 14 September 2006 - 11:35 PM

Functions to look at

imagecolorat()
imagesetpixel()
imagegammacorrect()
If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received






moon.png

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts

#3 ultrus

ultrus
  • Members
  • PipPipPip
  • Advanced Member
  • 244 posts

Posted 15 September 2006 - 12:26 AM

ooo. nice. Thank you. I will figure out some formulas and post if I run into further questions. This helped me a LOT!!
Twitter | Blog | Worlds to explore. Worlds to create.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users