1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-21 21:15:11 +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; public $encoded;
/** /**
* Create a new instance of Image class * Create a new instance of Image class
* *
@@ -1554,7 +1553,7 @@ class Image
$color = imagecolorat($this->resource, $x, $y); $color = imagecolorat($this->resource, $x, $y);
// format color // format color
switch ($format) { switch (strtolower($format)) {
case 'rgb': case 'rgb':
$color = imagecolorsforindex($this->resource, $color); $color = imagecolorsforindex($this->resource, $color);
$color = sprintf('rgb(%d, %d, %d)', $color['red'], $color['green'], $color['blue']); $color = sprintf('rgb(%d, %d, %d)', $color['red'], $color['green'], $color['blue']);