Jump to content


Photo

PHP Image


  • Please log in to reply
1 reply to this topic

#1 jaymc

jaymc
  • Members
  • PipPipPip
  • Advanced Member
  • 1,521 posts
  • LocationLiverpool

Posted 26 September 2006 - 10:49 PM

I have made a script to manipulate an image

The last stage of my script is to overlay a solid blue color over the entire image and then change the transparency of the blue to something like 30%

Basically, giving the total image a complete blue tint

What function does this and can you give me an example?

Thanks!
I would love to change the world, but they won't give me the source code

SEO Agency

#2 Barand

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

Posted 26 September 2006 - 11:03 PM

Is this the effect you want?
<?php
$im = imagecreatefromjpeg('myImage.JPG');
imagefilter($im,IMG_FILTER_COLORIZE,0,0,80);

header("content-type: image/jpeg");
imagejpeg($im);
imagedestroy($im);
?>

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users