mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-16 02:05:57 +00:00
remove floIcon: bugs
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
require_once "lib/floIcon.php";
|
||||
|
||||
function _resolve_htmlcolor($color) {
|
||||
$htmlcolors = array ("aliceblue" => "#f0f8ff",
|
||||
"antiquewhite" => "#faebd7",
|
||||
@@ -286,18 +284,7 @@ function hsl2rgb($arr) {
|
||||
|
||||
$size = @getimagesize($imageFile);
|
||||
|
||||
if (strtolower($size['mime']) == 'image/vnd.microsoft.icon') {
|
||||
$ico = new floIcon();
|
||||
@$ico->readICO($imageFile);
|
||||
|
||||
if(count($ico->images)==0)
|
||||
return null;
|
||||
else
|
||||
$img = @$ico->images[count($ico->images)-1]->getImageResource();
|
||||
|
||||
} else {
|
||||
$img = @imagecreatefromstring(file_get_contents($imageFile));
|
||||
}
|
||||
$img = @imagecreatefromstring(file_get_contents($imageFile));
|
||||
|
||||
if (!$img) return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user