It is currently 14 Apr 2021, 21:00

• Featuring Members' Works (Image Attachments) •
1: member
2: member
3: member
4: member
5: member

GIMP/GL:  Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  🡆 Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Make Icon Plug-in

Share your Python Fu Scripts/plug-ins for GIMP here
tim
GL Blogger

Make Icon Plug-in

Post#1 by tim » 09 Oct 2019, 05:23


This was requested by mackenzieh -> here.

Required: layerfx.py (layer effects plug-in)
make_icon.py #
(3.11 KiB) Downloaded 179 times
make_icon.py #
version 2. Instead of making color to alpha, clear and fill inverted selection with black instead.
(3.74 KiB) Downloaded 156 times
make_icon.py #
version 3. Change HSV blend to RGB blend so you don't get a rainbow gradient bug.
(3.82 KiB) Downloaded 176 times
Plug-in Menu Location: Python-Fu/Make Icon...
make-icon-options.png
make-icon-options.png # (22.75 KiB) Viewed 6758 times (Thumbnail | Recognize | Sq Tile)
Instructions:
  1. Have an image opened with image you want to turn into icon and have that layer active.
  2. Resize Canvas to size of icon you want surrounding your image.
  3. Run plug-in. Change color to alpha color to color of your image's surrounding background that you like to make transparent to reveal a silhouette. Select icon's color and slightly darker color. Click OK to run.
  4. After plug-in finishes, Change Opacity of "Silhouette" layer to your liking.
  5. That's it.
Here's a sample before and after.
make-icon-plugin-gimp.png
make-icon-plugin-gimp.png # (209.37 KiB) Viewed 6758 times (Thumbnail | Recognize | Sq Tile)
aka Tin

         

Pat625
Tutorial Creator

Post#2 by Pat625 » 11 Oct 2019, 20:39


Tin, I believe I am following your instructions but maybe not as the script begins to run but stops and gives error message before it finishes. What might I be doing wrong? Using Samj's 2.10.12 Windows 10 64.
Not finished.TT Icon.jpg
Not finished.TT Icon.jpg # (53.25 KiB) Viewed 6672 times (Thumbnail | Recognize | Sq Tile)
Icon Capture.JPG
Icon Capture.JPG # (49.31 KiB) Viewed 6672 times (Thumbnail | Recognize | Sq Tile)

tim
GL Blogger

Post#3 by tim » 12 Oct 2019, 12:52


Not sure what went wrong it looks like the gradient fail. it should be from color to slightly darker color.
Try setting changing your blend tool defaults.
UPDATE: looks like Something wrong with layerfx.py call.
aka Tin

         

Tom
Forum Member

Post#4 by Tom » 12 Oct 2019, 17:23


That has happened to me a couple of times with the plugin but I didn't get any errors. Just a gradient when I had only used the two colors. Now when I have tried to re-create it, it works perfectly.
It is a nice pugin !
Gimp_icon.png
Gimp_icon.png # (16.61 KiB) Viewed 6635 times (Thumbnail | Recognize | Sq Tile)

mackenzieh
Forum Member

Post#5 by mackenzieh » 12 Oct 2019, 18:09


Was the plugin updated?
This is what I get when I run the plugin:
Image

However when I moved the button layer above the silhouette layer, I get this:

Image

I used the inkscape logo and the color blue

The third time I ran the plugin, I got the gradient background which is an error.
GIMP Learn rocks...

Tom
Forum Member

Post#6 by Tom » 12 Oct 2019, 20:18


I used a Wilber and went to Colors>Levels and made Wilber completely black, then adjusted the opacity on the finished result.

mackenzieh
Forum Member

Post#7 by mackenzieh » 12 Oct 2019, 20:59


Will the plugin be updated?
GIMP Learn rocks...

Pat625
Tutorial Creator

Post#8 by Pat625 » 12 Oct 2019, 22:04


I will watch and see what happens with all of you! I just could not get it to work.

tim
GL Blogger

Post#9 by tim » 12 Oct 2019, 23:50


I don't know what to update the plugin to do.
aka Tin

         

tim
GL Blogger

Post#10 by tim » 13 Oct 2019, 01:39


Try version 2.
icon-made-with-version-2-of-plug-in.png
icon-made-with-version-2-of-plug-in.png # (21.97 KiB) Viewed 6607 times (Thumbnail | Recognize | Sq Tile)
aka Tin

         


GIMP/GL:  Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  🡆 Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Post Reply New Topic
  • Similar Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 19 guests