From 7bf5960df493bc619235e0e6c9d22f1b43cf4b07 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Tue, 19 Mar 2013 20:27:54 +0100 Subject: [PATCH] added possibility to fill with gd resource --- src/Intervention/Image/Image.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Intervention/Image/Image.php b/src/Intervention/Image/Image.php index 7959816c..7aaae776 100644 --- a/src/Intervention/Image/Image.php +++ b/src/Intervention/Image/Image.php @@ -788,6 +788,12 @@ class Image imagesettile($this->resource, $color->resource); $color = IMG_COLOR_TILED; + } elseif (is_resource($color)) { + + // fill with image resource + imagesettile($this->resource, $color); + $color = IMG_COLOR_TILED; + } else { // fill with color