Skip to main content

A tool to generate pretty, beveled OSX folder icons.

Project description

# folderify

![Apple Folder](examples/png/apple_folder_256.png)
![Cube Folder](examples/png/cube_folder_256.png)
![Octocat Folder](examples/png/octocat_folder_256.png)
![Rhombic Hexecontrahedron Folder](examples/png/rhombic_hexecontahedron_folder_256.png)
![Octocat Folder](examples/png/sysprefs_folder_256.png)


![apple.gif](examples/png/apple.gif)

# Try it!

git clone git://github.com/lgarron/folderify.git
cd folderify
for file in examples/src/*.png; do python -m folderify $file; done
open examples/src/

You should see a bunch of new `.iconset` folders and `.icns` files that were automatically generated from the `.png` masks.

Or try this:

git clone git://github.com/lgarron/folderify.git
cd folderify
python -m folderify examples/src/folder_outline.png .

The repository folder should now have an icon.

## Usage

Generate a native OSX folder icon from a mask file.

./folderify -h
usage: folderify [-h] [--reveal] [--pre-yosemite] mask [target]

Generate a native OSX folder icon from a mask file.

positional arguments:
mask Mask image file. For best results:
- Use a .png mask.
- Use a solid black design over a transparent background.
- Make sure the corner pixels of the mask image are transparent. They are used for empty margins.
- Make sure the icon is at least around 1024x1024, in order to look good at maximum Retina resolution.
target Target file or folder. If a target is specified, the resulting icon will be applied to the target file/folder. Else, a .iconset folder and .icns file will be created in the same folder as mask (you can use "Get Info" in Finder to copy the icon from the .icns file).

optional arguments:
-h, --help show this help message and exit
--reveal, -r Reveal the target (or resulting .icns file) in Finder.
--pre-yosemite Generate pre-Yosemite folder icons.

### Dependencies

- [ImageMagick](http://www.imagemagick.org/) - for image processing (you should be able to run <code>convert</code> on the commandline).
- Python 2 - to help assign the icon file to itself.
- Apple Developer Tools (for `iconutil`)

## Pre-Yosemite

If you'd like to generate old folder icons, use `folderify.py` with the `--pre-yosemite` flag.

## Info

`GenericFolderIcon.iconset` is generated from the OSX default folder icon using:

iconutil --convert iconset --output GenericFolderIcon.iconset "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericFolderIcon.icns"

Icons are set using [`osxiconutils`](http://www.sveinbjorn.org/osxiconutils), a GPL-licensed project by Sveinbjorn Thordarson (based on [`IconFamily`](http://iconfamily.sourceforge.net/)).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

folderify-0.0.3.tar.gz (3.1 MB view details)

Uploaded Source

File details

Details for the file folderify-0.0.3.tar.gz.

File metadata

  • Download URL: folderify-0.0.3.tar.gz
  • Upload date:
  • Size: 3.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for folderify-0.0.3.tar.gz
Algorithm Hash digest
SHA256 b5481dd25c8d67242a028e995e9faadf6fbaafd8ebc0867bef0cd3d7429cde31
MD5 2bf6c6ed3026c8b251769fc2c3befe68
BLAKE2b-256 a6532d62e5862a5c04e50c27cce482dc6014c6e5df41acf655297b0c74e45825

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page