1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 08:15:55 +00:00

colorPalette: try checking imagesize before invoking GD

This commit is contained in:
Andrew Dolgov
2013-06-14 10:48:25 +04:00
parent b684a2e665
commit 8d1cfe8020

View File

@@ -298,7 +298,7 @@ function hsl2rgb($arr) {
else
$img = @$ico->images[count($ico->images)-1]->getImageResource();
} else {
} else if ($size[0] > 0 && $size[1] > 0) {
$img = @imagecreatefromstring(file_get_contents($imageFile));
}