moxwel / winlabeler Goto Github PK
View Code? Open in Web Editor NEWTool for creating custom Windows folder icons and labels.
License: MIT License
Tool for creating custom Windows folder icons and labels.
License: MIT License
The program saves the following resolutions: 256, 48, 32, 16.
The Windows folder icon has many more: 256, 64, 48, 40, 32, 24, 20, 16.
File Explorer normally renders only 256, 48, 32 and 16, but for compatibility reasons, maybe is necessary to have all those resolutions saved too.
The icon is located at C:\Windows\System32\shell32.dll
and C:\Windows\System32\imageres.dll
. It can be extracted inside Windows.
A script that helps extract the icon can help to not have the images in the repository (avoiding potential copyright).
In some Windows installations, the icons are relocated to C:\Windows\SystemResources\shell32.dll.mun
and C:\Windows\SystemResources\imageres.dll.mun
. Reference
The software IconsExtract from NirSoft can extract icons from .dll
files. It is freeware, although is not open source.
The project icoextract can extract icons from .dll
files. It's open source too.
Execute one time.
python winLabeler.py "C:\example.png"
No problem. Execute again.
python winLabeler.py "C:\example.png"
Python throw FileExistsError
because out.ico
already exists.
Rename the new out.ico
to out1.ico
. It means there must be a check before saving to output folder.
Make a version for Windows 11 folders.
The program prints texts and prompts. The final program must be a one-line console program, using CLI arguments.
First position: -p
--path
Icon path (Required)
Not necessary to have a flag associated with this.
Second position: -ns
--no-small-folder
(Optional)
"small-folder" refers to the style of the small icon resolution.
If not specified, defaults to "small-folder".
Third position: -o
--output
Output file name (Optional)
If not specified, defaults to "out.ico".
python winLabeler.py "C:\Users\User\example.png"
python winLabeler.py "C:\Users\User\example.png" -ns
python winLabeler.py "C:\Users\User\example.png" -ns -o "my_icon.ico"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.