![]() ![]() and any size bigger than the original size or 255 will be ignored.Īs the Pyinstaller is OS based and ICNS is also generated OS based More OS specified from platform import system as OS_Name The Pillow docs say that by default it will generate sizes Optionally, you may specify the icon sizes (for Windows) you want: icon_sizes = ![]() Img.save('Linux_logo.png') # in case if your AppImage requires any logo file Img.save('Mac_logo.icns') # On Mac OS, icon file extension is. Img.save('Win_logo.ico') # On windows, icon file extension is. Img = Image.open(filename) # reads the JPG file This code will generate icon files for all (Mac, Win, Linux) from PIL import Imageįilename = r'logo.jpg' # the directory of logo file As you have mentioned you only need to convert the logo from jpg to icon files for the respective OS, then try image converter of Pillow.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |