-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different sizing? #13
Comments
This is working fine for me when looking at SystemResources on Windows 11. .ico files are multi-image files, and each "group icon" will usually contain multiple sizes and bit depths. You'll definitely want to use a toolchain that's aware of this: for example, the Pillow library lets you extract specific sizes using the |
No, I meant the PIL part as if for the image to be an |
Doe something like this work? This is how I do resizing in the exe-thumbnailer script, though I suppose the from icoextract import IconExtractor
from PIL import Image
extractor = IconExtractor('imageres.dll.mun')
data = extractor.get_icon(num=3)
im = Image.open(data) # create a PIL image from the .ico in memory
im.size = (48, 48)
im.save("result.png", "PNG") |
WOW, thanks for the help! :) |
In a previous issue #11, I said this:
And with my second edit, I said, that I needed a different size of the icon. I want the icon to be 48x48 pixels in size, and here's the snippet:
foldIcon.ico
is currently 16x16 pixels in size, but I want it to be a 48x48 icon, to be as an PIL image. Can some help me?The text was updated successfully, but these errors were encountered: