2121"""
2222
2323import base64
24- import imageio
24+ # import imageio
2525import os
2626import chardet
2727import csv
@@ -44,22 +44,22 @@ def file_to_base64(filename):
4444 return encoded_string
4545
4646
47- def png_to_ico (filename ):
48- """
49- Function converts given png file into ico.
50- :param filename: png file name
51- :return: ico file name
52- """
53- filename_without_extension = os .path .splitext (filename )[0 ]
54- target_file_name = filename_without_extension + ".ico"
55- img = imageio .imread (filename )
56- imageio .imwrite (target_file_name , img )
47+ # def png_to_ico(filename):
48+ # """
49+ # Function converts given png file into ico.
50+ # :param filename: png file name
51+ # :return: ico file name
52+ # """
53+ # filename_without_extension = os.path.splitext(filename)[0]
54+ # target_file_name = filename_without_extension + ".ico"
55+ # img = imageio.imread(filename)
56+ # imageio.imwrite(target_file_name, img)
5757
58- # img = Image.open(filename)
59- # icon_sizes = [(16, 16), (32, 32), (48, 48), (64, 64)]
60- # img.save(target_file_name, sizes=icon_sizes)
58+ # # img = Image.open(filename)
59+ # # icon_sizes = [(16, 16), (32, 32), (48, 48), (64, 64)]
60+ # # img.save(target_file_name, sizes=icon_sizes)
6161
62- return target_file_name
62+ # return target_file_name
6363
6464
6565def base64_to_ico (ico_in_base64 , filename ):
0 commit comments