From: Rasmus Lerdorf Date: Sat, 16 Apr 2005 09:20:59 +0000 (+0000) Subject: I think this is a cleaner emboss filter. Less fringing. X-Git-Tag: php-5.0.1b1~511 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4162bd8b21143492cadbe70baa75360ac3ec6307;p=php I think this is a cleaner emboss filter. Less fringing. --- diff --git a/ext/gd/libgd/gd.c b/ext/gd/libgd/gd.c index 56054188f4..18a5934240 100644 --- a/ext/gd/libgd/gd.c +++ b/ext/gd/libgd/gd.c @@ -3883,9 +3883,14 @@ int gdImageGaussianBlur(gdImagePtr im) int gdImageEmboss(gdImagePtr im) { +/* float filter[3][3] = {{1.0,1.0,1.0}, {0.0,0.0,0.0}, {-1.0,-1.0,-1.0}}; +*/ + float filter[3][3] = {{ 1.5, 0.0, 0.0}, + { 0.0, 0.0, 0.0}, + { 0.0, 0.0,-1.5}}; return gdImageConvolution(im, filter, 1, 127); }