diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -158,13 +158,13 @@ function extract_dominant_color($svg, $algo = 'average', $filter = 'grey') return false; } $img = imagecreatefrompng($png); + unlink($png); if (!$img) { warn('Initial rasterization generated incorrect PNG'); return false; } $color = call_user_func('domcolor_'. $algo, $img, 'colfilter_'.$filter); imagedestroy($img); - unlink($png); if (!$color) { warn("I failed to get a dominant color. Your icon might be too greyish, so I'm making it grey."); return array(128, 128, 128); |