mirror of
https://github.com/Intervention/image.git
synced 2025-08-21 21:15:11 +02:00
Small fix
This commit is contained in:
@@ -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']);
|
||||||
|
Reference in New Issue
Block a user