开发者

"soft focus" effect in PHP

开发者 https://www.devze.com 2023-02-06 23:20 出处:网络
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

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>

0

精彩评论

暂无评论...
验证码 换一张
取 消