diff --git a/library/Imbo/Resource/Image.php b/library/Imbo/Resource/Image.php index 689f3d896..9675e250f 100644 --- a/library/Imbo/Resource/Image.php +++ b/library/Imbo/Resource/Image.php @@ -260,7 +260,7 @@ public function get(Container $container) { $imageType = $this->image->getMimeType(); $acceptableTypes = $request->getAcceptableContentTypes(); - if (!$extension) { + if (!$extension && !$this->contentNegotiation->isAcceptable($imageType, $acceptableTypes)) { $typesToCheck = ImageObject::$mimeTypes; $match = $this->contentNegotiation->bestMatch(array_keys($typesToCheck), $acceptableTypes);