GithubHelp home page GithubHelp logo

folderikon's Introduction

FolderIkon

PyPI - Python Version PyPI - Status License Lines of code Code Style: Black

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.

Licence

FolderIkon is distributed under the MIT License

folderikon's People

Contributors

anandsshah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

chinmayagit

folderikon's Issues

unable to change folder icon

first i pip install folderikon

then,
python folderikon

python folderikon python: can't open file 'C:\\Users\\xyz\\OneDrive\\Desktop\\New folder\\folderikon': [Errno 2] No such file or directory

not worked then,
folderikon

folderikon 'folderikon' is not recognized as an internal or external command, operable program or batch file.

not worked

i create a new folder inside that folder ico is present

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.