"soft focus" effect in PHP
I was looking for an implementation of "soft focus" effect with php and GD
More info here: http://www.nickgallery.com/web_pages/technical%208.htm
Tutorial in photoshop: http://www.开发者_JAVA技巧makeuseof.com/tag/create-awesome-soft-focus-effect-photoshop-2/
I was trying to do with something like that:
<?php
$image = imagecreatefromjpeg("image.jpg");
imagefilter($image, IMG_FILTER_GAUSSIAN_BLUR);
header("content-type: image/jpeg");
imagejpeg($image);
imagedestroy($image);
?>
Check out phpThumb - it has a lot of great filters/options built into the library that might help you get this sort of result.
Here's the demo page where you can see some of them in action.
You'd most likely have better luck using Gimp and scripting it to achieve this, otherwise you're looking at doing a LOT of per-pixel manipulation with GD, which is going to be a slow operation in PHP>
精彩评论