File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ public function negative()
82
82
public function grayscale ()
83
83
{
84
84
try {
85
- $ this ->gmagick ->setImageType (2 );
85
+ $ this ->gmagick ->setimagetype (2 );
86
86
} catch (\GmagickException $ e ) {
87
87
throw new RuntimeException ('Failed to grayscale the image ' , $ e ->getCode (), $ e );
88
88
}
@@ -118,7 +118,7 @@ public function sharpen()
118
118
public function blur ($ sigma = 1 )
119
119
{
120
120
try {
121
- $ this ->gmagick ->blurImage (0 , $ sigma );
121
+ $ this ->gmagick ->blurimage (0 , $ sigma );
122
122
} catch (\GmagickException $ e ) {
123
123
throw new RuntimeException ('Failed to blur the image ' , $ e ->getCode (), $ e );
124
124
}
@@ -168,7 +168,7 @@ public function convolve(Matrix $matrix)
168
168
}
169
169
try {
170
170
$ this ->gmagick ->convolveimage ($ matrix ->getValueList ());
171
- } catch (\ImagickException $ e ) {
171
+ } catch (\GmagickException $ e ) {
172
172
throw new RuntimeException ('Failed to convolve the image ' );
173
173
}
174
174
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ protected function setUpBase()
40
40
*/
41
41
public function testColorize ()
42
42
{
43
- $ this ->isGoingToThrowException ('Imagine\Exception\RuntimeException ' );
43
+ $ this ->isGoingToThrowException ('Imagine\Exception\NotSupportedException ' );
44
44
parent ::testColorize ();
45
45
}
46
46
You can’t perform that action at this time.
0 commit comments