Permalink
Browse files

Add JPEG as watermark test as well

Add watermark test with JPEG
  • Loading branch information...
1 parent 0450e1a commit 8298737fc20acc2dca74f402b0c7a221e70429a3 @matslindh matslindh committed Nov 24, 2016
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -230,6 +230,16 @@ public function getParamsForWatermarks() {
'top mid watermark' => ['x' => 50, 'y' => 50, 'colors' => [153, 153, 153]], // 255*0.6=153
],
],
+ 'jpg with opacity' => [
+ [
+ 'opacity' => 40,
+ 'watermarkFixture' => 'black.jpg',
+ ],
+ [
+ 'top left corner' => ['x' => 0, 'y' => 0, 'colors' => [153, 153, 153]], // 255*0.6=153
+ 'top right corner' => ['x' => $this->width - 1, 'y' => 0, 'colors' => [255, 255, 255]],
+ ],
+ ],
];
}

0 comments on commit 8298737

Please sign in to comment.