diff options
author | Andrew Dolgov <[email protected]> | 2013-04-16 23:16:51 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-04-16 23:16:51 +0400 |
commit | 7970c0925505ba1bd3b3dd15a45bebf2e839f5cf (patch) | |
tree | ee146d4ee344cd4c2fee6dd29297de406043ab2c /include | |
parent | da1e51cdfbfde85e2d8242b223fe2a07271fbcb7 (diff) |
remove floIcon: bugs
Diffstat (limited to 'include')
-rw-r--r-- | include/colors.php | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/include/colors.php b/include/colors.php index 1359b9e2d..9e4429a78 100644 --- a/include/colors.php +++ b/include/colors.php @@ -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; |