Jump to content

Archived

This topic is now archived and is closed to further replies.

jaymc

PHP Image

Recommended Posts

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!

Share this post


Link to post
Share on other sites
Is this the effect you want?
[code]<?php
$im = imagecreatefromjpeg('myImage.JPG');
imagefilter($im,IMG_FILTER_COLORIZE,0,0,80);

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

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.