@@ 974-990 (lines=17) @@ | ||
971 | ||
972 | ## -------------------------------------------------------- |
|
973 | ||
974 | public function greyScaleEnhanced() |
|
975 | # Author: Jarrod Oberto |
|
976 | # Date: 07-05-2011 |
|
977 | # Purpose: Make image greyscale |
|
978 | # Param in: n/a |
|
979 | # Param out: |
|
980 | # Reference: |
|
981 | # Notes: |
|
982 | # |
|
983 | { |
|
984 | if ($this->imageResized) { |
|
985 | imagefilter($this->imageResized, IMG_FILTER_GRAYSCALE); |
|
986 | imagefilter($this->imageResized, IMG_FILTER_CONTRAST, -15); |
|
987 | imagefilter($this->imageResized, IMG_FILTER_BRIGHTNESS, 2); |
|
988 | $this->sharpen($this->width); |
|
989 | } |
|
990 | } |
|
991 | ||
992 | ## -------------------------------------------------------- |
|
993 | ||
@@ 1105-1114 (lines=10) @@ | ||
1102 | ||
1103 | ||
1104 | /** Apply 'Monopin' preset */ |
|
1105 | public function gd_filter_monopin() |
|
1106 | { |
|
1107 | ||
1108 | if ($this->imageResized) { |
|
1109 | imagefilter($this->imageResized, IMG_FILTER_GRAYSCALE); |
|
1110 | imagefilter($this->imageResized, IMG_FILTER_BRIGHTNESS, -15); |
|
1111 | imagefilter($this->imageResized, IMG_FILTER_CONTRAST, -15); |
|
1112 | $this->imageResized = $this->gd_apply_overlay($this->imageResized, 'vignette', 100); |
|
1113 | } |
|
1114 | } |
|
1115 | ||
1116 | ## -------------------------------------------------------- |
|
1117 |