diff --git a/wx/tools/img2img.py b/wx/tools/img2img.py index 19eb6884..af360664 100644 --- a/wx/tools/img2img.py +++ b/wx/tools/img2img.py @@ -21,11 +21,7 @@ import sys import wx def convert(file, maskClr, outputDir, outputName, outType, outExt): - if os.path.splitext(file)[1].lower() == ".ico": - img = wx.Bitmap(file, wx.BITMAP_TYPE_ICO) - else: - img = wx.Bitmap(file, wx.BITMAP_TYPE_ANY) - + img = wx.Bitmap(file, wx.BITMAP_TYPE_ANY) if not img.IsOk(): return 0, file + " failed to load!" else: