Skip to content

Commit

Permalink
Only negate RGB channels. Fixes #38.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Jan 12, 2018
1 parent e38b949 commit 6fdfdd5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions folderify/__main__.py
Expand Up @@ -202,29 +202,29 @@ def create_iconset(print_prefix, mask, temp_folder, iconset_folder, params):
# TODO: rewrite in Python.
command = [
convert_path, template_icon, "(",
"(", TEMP_MASK_IMAGE, "-negate", "-colorize", "3,23,40", "-negate", ")",
"(", TEMP_MASK_IMAGE, "-colorize", "3,23,40", ")",
"(",
"(",
"(",
TEMP_MASK_IMAGE,
"(",
TEMP_MASK_IMAGE, "-negate", "-shadow", "100x1+10+0", "-geometry", "-2-2",
TEMP_MASK_IMAGE, "-channel", "rgb", "-negate", "+channel", "-shadow", "100x1+10+0", "-geometry", "-2-2",
")",
"-compose", "dst-out", "-composite", "+repage",
")",
"(",
TEMP_MASK_IMAGE,
"(",
TEMP_MASK_IMAGE, "-negate", "-geometry", "+0-1",
TEMP_MASK_IMAGE, "-channel", "rgb", "-negate", "+channel", "-geometry", "+0-1",
")",
"-compose", "dst-out", "-composite", "+repage", "-negate", "-geometry", ("+0+%d" % offset_white),
"-compose", "dst-out", "-composite", "+repage", "-channel", "rgb", "-negate", "+channel", "-geometry", ("+0+%d" % offset_white),
")",
"-compose", "dissolve", "-define", ("compose:args=%dx50" % opacity_white), "-composite", "+repage",
")",
"(",
TEMP_MASK_IMAGE,
"(",
TEMP_MASK_IMAGE, "-negate", "-geometry", "+0+1",
TEMP_MASK_IMAGE, "-channel", "rgb", "-negate", "+channel", "-geometry", "+0+1",
")",
"-compose", "dst-out", "-composite", "+repage",
")",
Expand Down

0 comments on commit 6fdfdd5

Please sign in to comment.