1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-20 12:41:23 +02:00

Small fix

This commit is contained in:
Vasily Khayrulin
2014-03-28 14:41:16 +04:00
parent 143a86a4a4
commit 6d6f69deb4

View File

@@ -84,7 +84,6 @@ class Image
public $encoded;
/**
* Create a new instance of Image class
*
@@ -1554,7 +1553,7 @@ class Image
$color = imagecolorat($this->resource, $x, $y);
// format color
switch ($format) {
switch (strtolower($format)) {
case 'rgb':
$color = imagecolorsforindex($this->resource, $color);
$color = sprintf('rgb(%d, %d, %d)', $color['red'], $color['green'], $color['blue']);