Skip to main content

FolderIkon

PyPI - Python Version PyPI - Status PyPI - License Lines of code

A Windows utility to set folder icons.

Normally, setting a folder icon (not to be confused with a folder picture) through Windows Explorer requires an icon of ICO format, this means converting it first. Also changing the folder name will make the icon ineffective.

FolderIkon will take a JPG, ICO or a PNG file, convert it, create/edit the configuration file desktop.ini, set the appropriate permissions and notify the Shell about the icon. The icon will be hidden as it has generally no other use, also it is a 256x256 image, nothing beautiful.

However tilted images e.g those of product boxes etc. will not be displayed properly. A square image is recommended for optimum results. I suggest not to use images of other aspect ratios although they will work.

Installation

Requires Python 3.6+ and Windows

pip install --upgrade folderikon

Usage

Set the first ICO, JPG or PNG found in the current folder as the folder icon (subfolders not included).

folderikon

Set image as the folder icon of the current folder. image can be a URL as well.

folderikon -i image

Set image as the folder icon of folder and name the icon as icon

folderikon -i image -d folder -o icon

Note

It may take some time; or a restart of Windows Explorer for the folder icon to appear.

Command-line options

folderikon [-h] [--image IMAGE] [--icon ICON] [--folder FOLDER] [--delete-original] [--raise-on-existing] [--dont-hide-icon] [--silent] [--no-color]

A Windows utility to set folder icons.

optional arguments:
  -h, --help            show this help message and exit
  --image IMAGE, --input IMAGE, -i IMAGE
                        The image to set as folder icon. JPG, ICO and PNG formats are supported. URLs can be specified as well. Defaults to the       
                        first JPG/PNG file found in the current folder.
  --icon ICON, --output ICON, -o ICON
                        Output icon file name. Defaults to the name of first JPG/PNG found in current folder saved with a '.ico' extension.
  --folder FOLDER, -d FOLDER
                        The path of the folder whose icon is to be set. Defaults to the current folder.
  --delete-original, -f
                        Deletes the original image.
  --raise-on-existing   Raise an exception if the folder already has an icon.
  --dont-hide-icon      The folder icon is marked as hidden by default. Use this option to not do it.
  --no-color            Disables colored output.

TODO

Changelog

Licence

FolderIkon is distributed under the MIT License

Metadata

Release files for folderikon 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for folderikon 0.0.2
File Size Uploaded
folderikon-0.0.2.tar.gz 8.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for folderikon 0.0.2
File Interpreter ABI Platform
folderikon-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 16.8 kB

Release files / folderikon-0.0.2.tar.gz

Download URL folderikon-0.0.2.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
28bedc062067127529f545a027e363f8fa57da280d3b251d5092af0ce3fc897f
BLAKE2b-256 checksum
How to use checksums
baf079ca354e036b6e3259e17f4f0cd64edb3c072dfcd3f229f303103def41bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / folderikon-0.0.2-py3-none-any.whl

Download URL folderikon-0.0.2-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
368c2a4a4d2dd847252a691fbe1be9cbf7179c599d5f242178d96883d0c7df8f
BLAKE2b-256 checksum
How to use checksums
e363d854efac05040bbf96639ec59f5feb43f938d1815bf8aa94da65d21765eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page