Loading icons from a DLL file?

Open
#7,191 12 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python

Research direction

No file or test is named in the issue. Start by reviewing Pillow's existing image-loading entry points and any Windows-specific handling, then determine how a selected icon in a DLL could be represented. Done means the supported DLL/icon cases are defined and a selected native icon can be loaded as a Pillow image with tests.

Written by the indexing model from the issue text.

Description

Enhancement Windows

Windows defines some native icons bundled in DLL files. I'm talking about these specifically: https://www.digitalcitizen.life/where-find-most-windows-10s-native-icons/

Is there a way in Pillow to open/load a selected icon from one of these files? I can't find anything specific to it being possible, and obviously loading the DLL file directly doesn't work (PIL.UnidentifiedImageError). If not, it'd be cool to add some support for it.

Dominant language
Python
Stars
14k
Forks
2.6k
Avg merge
1d 1h
Merged PRs (30d)
205

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from python-pillow/Pillow

All issues in python-pillow/Pillow

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.