mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-15 13:01:00 +02:00
colorPalette: try checking imagesize before invoking GD
This commit is contained in:
parent
b684a2e665
commit
8d1cfe8020
@ -298,7 +298,7 @@ function hsl2rgb($arr) {
|
|||||||
else
|
else
|
||||||
$img = @$ico->images[count($ico->images)-1]->getImageResource();
|
$img = @$ico->images[count($ico->images)-1]->getImageResource();
|
||||||
|
|
||||||
} else {
|
} else if ($size[0] > 0 && $size[1] > 0) {
|
||||||
$img = @imagecreatefromstring(file_get_contents($imageFile));
|
$img = @imagecreatefromstring(file_get_contents($imageFile));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user