It is currently Thu Jul 04, 2024 4:23 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 145 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8
Author Message
 Post subject: Re: new python filter for STAINED GLASS
PostPosted: Thu Sep 29, 2016 12:38 am  (#141) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Warning: do not use any gray (R=G=B) colour for "Colour of the lead junctions", otherwise you may get a flat colored image

but this happens randomly, so maybe you will get the correct outcome also with a gray nuance (re-opened gimp and retried, it works....bah!)

_________________
"Where am I ?"


Top
 Post subject: Re: new python filter for STAINED GLASS
PostPosted: Thu Sep 29, 2016 4:42 am  (#142) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2438
For linux users.

I had a search around but could not find the cartoonizer plugin compiled for linux. It will be there somewhere but to save a hunt, try the attached.
Usual guarantees, there are none ;)

cartoonizer on its own is a nice little plugin, it does work here (32 and 64 bit) and in this machine, Gimp 2.8.18 + Kubuntu 16.04 + gmic 1.7.7pre + v3 Stained Glass
Attachment:
poppies.jpg
poppies.jpg [ 327.13 KiB | Viewed 928 times ]

For the other dependencies
Bevel Reflect is a .scm script, so thats ok
ML Bevel Reflect is available in 32/64 bit linux versions at gimpscripts.com


Attachments:
cartoonizer-linux-32-64.zip [65.74 KiB]
Downloaded 65 times

_________________
Image
Top
 Post subject: Re: new python filter for STAINED GLASS
PostPosted: Thu Sep 29, 2016 5:01 am  (#143) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
those dependencies are for Windows users only (and obsolete, somehow; they were not updated)
the filter detects whether Windows is the OS running or not: if not, it calls another function
if (systemrunning == "Windows"):
        #  cartonizer with removal of small areas
        pdb.plug_in_cartoonizer(newImage, Preprocessed_Layer,
                # nr-of-colors, colorweight, weightingmode, algorithm
                inNrCol, 8, 2, 0,
                # B&W, legend, denoise
                False, False, True,
                # spotsize, despotting-iterat, erode, erode-iterat
                100, 5, True, 20,       
                # dolines, color, removeshorter, postprocess
                False, 0, 0, 0, 0)
    else:
        #[G'MIC] Cartoon: -cartoon 10,400,30,0.1,1.5,7,0
        pdb.plug_in_gmic(newImage, Preprocessed_Layer, 1,    # 1=input only active layer
        "-v - -cartoon 10,400,30,0.1,1.5,"
        +str(inNrCol)
        +"0")

_________________
"Where am I ?"


Top
 Post subject: Re: new python filter for STAINED GLASS
PostPosted: Thu Sep 29, 2016 5:13 am  (#144) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Dependencies (updated):
- for all users G'MIC latest version
- for Windows users only: Gimp plug-ins: - plug-in cartoonizer.exe
- for other OS users: - none

_________________
"Where am I ?"


Top
 Post subject: Re: new python filter for STAINED GLASS
PostPosted: Thu Sep 29, 2016 5:58 am  (#145) 
Offline
GimpChat Member
User avatar

Joined: Apr 09, 2016
Posts: 580
Location: Sheffield UK
Thanks to this filter I now, at last, begin to understand what constitutes a good image for manipulation.

_________________
Image


Top
Post new topic Reply to topic  [ 145 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Stained Glass (well almost).

4

No new posts Coleus Stained Glass

9

No new posts Attachment(s) GEGL Stained Glass Tile theory (concept not a plugin yet)

0

No new posts Attachment(s) How to call a python filter to run interactively

10

No new posts Attachment(s) Python calling G'MIC filter? (Solved)

4



* Login  



Powered by phpBB3 © phpBB Group