diff --git a/src/Intervention/Image/AbstractDecoder.php b/src/Intervention/Image/AbstractDecoder.php index c421c7d9..419d5cfc 100644 --- a/src/Intervention/Image/AbstractDecoder.php +++ b/src/Intervention/Image/AbstractDecoder.php @@ -329,12 +329,12 @@ abstract class AbstractDecoder case $this->isDataUrl(): return $this->initFromBinary($this->decodeDataUrl($this->data)); - case $this->isBase64(): - return $this->initFromBinary(base64_decode($this->data)); - case $this->isFilePath(): return $this->initFromPath($this->data); + case $this->isBase64(): + return $this->initFromBinary(base64_decode($this->data)); + default: throw new Exception\NotReadableException("Image source not readable"); }