Fixing massive icon problems by removing support for Windows ICO files.

This commit is contained in:
Samuel Clay 2014-05-16 12:33:06 -07:00
parent 403a4ced90
commit b746dda72d

View file

@ -39,12 +39,6 @@ class IconImporter(object):
image, image_file, icon_url = self.fetch_image_from_path(force=self.force) image, image_file, icon_url = self.fetch_image_from_path(force=self.force)
if image: if image:
try:
ico_image = self.load_icon(image_file)
if ico_image: image = ico_image
except ValueError:
# print "Bad .ICO"
pass
image = self.normalize_image(image) image = self.normalize_image(image)
try: try:
color = self.determine_dominant_color_in_image(image) color = self.determine_dominant_color_in_image(image)
@ -95,6 +89,8 @@ class IconImporter(object):
def load_icon(self, image_file, index=None): def load_icon(self, image_file, index=None):
''' '''
DEPRECATED
Load Windows ICO image. Load Windows ICO image.
See http://en.wikipedia.org/w/index.php?oldid=264332061 for file format See http://en.wikipedia.org/w/index.php?oldid=264332061 for file format