Merge branch 'master' of git.tt-rss.org:tt-rss/tt-rss

This commit is contained in:
Andrew Dolgov
2023-02-25 19:31:07 +03:00
7 changed files with 33 additions and 14 deletions

View File

@@ -355,8 +355,9 @@ function colorPalette(string $imageFile, int $numColors, int $granularity = 5):
} else {
$img = @$ico->images[count($ico->images)-1]->getImageResource();
}
} else {
return null;
}
return null;
} else if ($size[0] > 0 && $size[1] > 0) {
$img = @imagecreatefromstring(file_get_contents($imageFile));
}