It is currently Mon Jul 22, 2024 2:37 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Request for help : G'MIC filter for Gimp
PostPosted: Sat Sep 22, 2012 7:13 pm  (#1) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
Bonjour,

I would like some help to make this filter without having to save images. Thank you.

The filter code is attached.

An overview of the rendering of this filter :


Attachments:
test_couleurs_boostees.jpg
test_couleurs_boostees.jpg [ 262.42 KiB | Viewed 2228 times ]
test_couleurs_boostees.zip [1.51 KiB]
Downloaded 113 times
Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Request for help : G'MIC filter for Gimp
PostPosted: Sun Sep 23, 2012 3:27 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
I should have some free time this afternoon to give it a try.


Top
 Post subject: Re: Request for help : G'MIC filter for Gimp
PostPosted: Sun Sep 23, 2012 5:52 am  (#3) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
Bonjour,

Thank you for your help :)
I will "optimize" the code to limit the number of backup images.


Top
 Post subject: Re: Request for help : G'MIC filter for Gimp
PostPosted: Sun Sep 23, 2012 6:29 am  (#4) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
Here is my "optimized" code, I do 3 backups instead of 4 backups.


Attachments:
test_couleurs_boostees_2.zip [1.49 KiB]
Downloaded 110 times
Top
 Post subject: Re: Request for help : G'MIC filter for Gimp
PostPosted: Sun Sep 23, 2012 8:00 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Here is my version of your filter, which also works on multiple layers :

test_couleurs_boostees :
  -repeat @# -l[$>]
    --remove_opacity                       # '--' add the result as a new image to the list.
    -gimp_painting[-1] 5,2.5,1.5,50,1
    -gimp_morpho[-1] 5,5,0,0,0,0
    --cartoon[-1] $1,80,20,0.25,1.5,8
    -compose_screen[-2,-1]
    -transfer_colors 0
  -endl -done


The thing you've perhaps not seen is the use of the double dashed commands 'e.g. --cartoon[-1] ..', which does the same as the simple dashed call except that it inserts the resulting image at the end of the list, instead of just acting in-place.

Let me know if that is working for you.


Last edited by Ronounours on Sun Sep 23, 2012 9:01 am, edited 1 time in total.

Top
 Post subject: Re: Request for help : G'MIC filter for Gimp
PostPosted: Sun Sep 23, 2012 8:29 am  (#6) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
Bonjour,

Thank you for your answer :)

I did not read the instructions properly and explanation in English :
A G’MIC command starting with ’--’ instead of ’-’ does not act ’in-place’ but inserts its result as one or several new images at the end of the image list.

I'll test your code and also change mine. It will be a good exercise.

I will add this filter at end of the day and will make an announcement.

:tyspin


Top
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) cli345's cartoon filter as a native GEGL Filter.

10

No new posts Attachment(s) Script request

3

No new posts My shameful n00b request for help

3

No new posts Attachment(s) pm_create_a_water_drop_text.py (Issabella request) updated

17

No new posts Attachment(s) pm_plexi_text_effect plugin (Issabella request) version_2

13



* Login  



Powered by phpBB3 © phpBB Group