diff --git a/Manager.php b/Manager.php index 544641c..5436280 100644 --- a/Manager.php +++ b/Manager.php @@ -274,8 +274,14 @@ private function convertFormat($format) */ private function checkImage($path) { + // remove explicit format if present + if(preg_match("/:(?!\/\/)/", $path) === 1) { + $path = preg_split("/:(?!\/\/)/", $path); + $path = $path[1]; + } + if (!file_exists($this->getWebDirectory() . '/' . $path) && !file_exists($path)) { - throw new NotFoundException(sprintf("Unable to find the image \"%s\" to cache", $path)); + throw new NotFoundException(sprintf("Unable to find image \"%s\"", $path)); } if (!is_file($this->getWebDirectory() . '/' . $path) && !is_file($path)) {