From 8b2759bc23091e98f82d3d0457c8e2e645aa56c9 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Fri, 29 Mar 2013 13:24:03 +0100 Subject: [PATCH] bugfix --- src/Intervention/Image/Image.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Intervention/Image/Image.php b/src/Intervention/Image/Image.php index 9cfcfcaa..03ce33d5 100644 --- a/src/Intervention/Image/Image.php +++ b/src/Intervention/Image/Image.php @@ -922,15 +922,15 @@ class Image imagesettile($this->resource, $source); $source = IMG_COLOR_TILED; - } elseif (is_string($source) && file_exists(realpath($source))) { + } elseif (is_string($source) && $this->isBinary($source)) { + // fill with image from binary string $img = new self($source); imagesettile($this->resource, $img->resource); $source = IMG_COLOR_TILED; - } elseif (is_string($source) && $this->isBinary($source)) { + } elseif (is_string($source) && file_exists(realpath($source))) { - // fill with image from binary string $img = new self($source); imagesettile($this->resource, $img->resource); $source = IMG_COLOR_TILED;