Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Readme
folderify
v2 ⚠️This is folderify v2 (implemented in Python and published to PyPI), which is no longer officially supported. Unless you need folder icons for macOS 10.15 or earlier, please consider updating to folderify v3: https://github.com/lgarron/folderify/tree/main#install
Generate pixel-perfect macOS folder icons in the native style.
16x16
through 512x512@2x
.Using folderify
? Let me know or let me know and I'd love to feature some real-world uses!
brew install folderify
Use a mask to assign an icon to a folder:
folderify mask.png /path/to/folder
Generate mask.icns
and mask.iconset
files:
folderify mask.png
Generate icon files for a specific version of macOS (the default is your current version):
folderify --macOS 11.0 mask.png
By default, folderify
uses your system's current light/dark mode. Use --color-scheme
to override this:
folderify --macOS 11.0 --color-scheme dark mask.png
Note:
For best results:
.png
mask.--no-trim
flag and use a mask:
If you don't have Homebrew but you already have ImageMagick (the convert
binary) on your system, you can use the following:
pip
pip install folderify
Or download the code directly:
curl -L https://github.com/lgarron/folderify/archive/main.zip -o folderify-main.zip
unzip folderify-main.zip && cd folderify-main
python -m folderify examples/src/folder_outline.png . --reveal
The repository folder should now have a custom icon.
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.
convert
and identify
on the commandline).iconutil
folderify
:
osxiconutils
, a GPL-licensed project by Sveinbjorn Thordarson (based on IconFamily
).sips
, DeRez
, Rez
, SetFile
(You need XCode command line tools for some of these.)
--set-icon-using Rez
in the arguments.usage: folderify [-h] [--reveal] [--macOS VERSION] [--osx VERSION]
[--color-scheme COLOR_SCHEME] [--no-trim]
[--set-icon-using TOOL] [--verbose]
[mask] [target]
Generate a native-style macOS 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 non-transparent pixels span a height of 384px, using a 16px grid.
If the height is 384px and the width is a multiple of 128px, each 64x64 tile will exactly align with 1 pixel at the smallest folder size.
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 the 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.
--macOS VERSION Version of the macOS folder icon, e.g. "10.13". Defaults to the version currently running (10.16).
--osx VERSION, -x VERSION
Synonym for the --macOS argument.
--color-scheme COLOR_SCHEME
Color scheme: auto (match current system), light, dark.
--no-trim Don't trim margins from the mask. By default, transparent margins are trimmed from all 4 sides.
--set-icon-using TOOL
Tool to used to set the icon of the target: auto (default), seticon, Rez.
Rez usually produces a smaller "resource fork" for the icon, but only works if XCode command line tools are already installed and if you're using a folder target.
--verbose, -v Detailed output.
Example generated from the Apple logo:
FAQs
Generate pixel-perfect macOS folder icons in the native style.
We found that folderify demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.