It is currently Wed Jul 24, 2024 2:16 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 30 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Script Requests/Suggestions for gimp chat members
PostPosted: Wed Jun 04, 2014 2:54 pm  (#21) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
I love the look of that flower Issabella.

_________________
Image


Top
 Post subject: Re: Script Requests/Suggestions for gimp chat members
PostPosted: Wed Jun 04, 2014 7:40 pm  (#22) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4041
Location: Canada
Pegleg44,
try this script found here: http://gimpchat.com/viewtopic.php?f=9&t=10478

_________________
TinT


Top
 Post subject: Re: Script Requests/Suggestions for gimp chat members
PostPosted: Thu Jun 05, 2014 10:26 am  (#23) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
ofnuts wrote:
MareroQ wrote:
Request new scripts/plugins
As for layers - only for Paths:
Select the Paths:
- All
- Invert
- Clear
- Reverse


What would "Select all" or "Clear" do? What is the difference between "Invert" and "Reverse" (by the way there is a "reverse-strokes" script in my collection).


Attachments:
Pathcomander.png
Pathcomander.png [ 41.58 KiB | Viewed 2367 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Script Requests/Suggestions for gimp chat members
PostPosted: Thu Jun 05, 2014 12:11 pm  (#24) 
Online
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
If you shift-click on an eye icon, the click applies to all so its very easy to change the state of all paths, so All/None above are already there. Invert is easy to obtain the same way if there is only one Path that should be the opposite of the others.

Reverse would be a different animal but I don't see the purpose of reordering the paths? According to the doc of the Raise/Lower buttons "The position of a path in the list has no functional significance, so this is simply a convenience to help you keep things organized.". And if you reverse the order, the organization remains the same...

So that leaves us with toggling the visibility of several (but not all) paths together.

_________________
Image


Top
 Post subject: Re: Script Requests/Suggestions for gimp chat members
PostPosted: Mon Jun 09, 2014 11:25 am  (#25) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4041
Location: Canada
is there a script-fu procedure to set white/black/mid gray points in levels?

I want to write a script that does this http://blog.patdavid.net/2011/06/getting-around-in-gimp-color-correction.html

by getting pixel values and comparing RGB values to see which points are whitest/darkest/grayest but can't see a procedure in script-fu for setting these white/black/mid gray points.

_________________
TinT


Top
 Post subject: Re: Script Requests/Suggestions for gimp chat members
PostPosted: Mon Jun 09, 2014 12:26 pm  (#26) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
trandoductin wrote:
is there a script-fu procedure to set white/black/mid gray points in levels?

I want to write a script that does this http://blog.patdavid.net/2011/06/getting-around-in-gimp-color-correction.html

by getting pixel values and comparing RGB values to see which points are whitest/darkest/grayest but can't see a procedure in script-fu for setting these white/black/mid gray points.


Maybe gimp-levels:
Attachment:
Untitled.png
Untitled.png [ 30.1 KiB | Viewed 2286 times ]


Top
 Post subject: Re: Script Requests/Suggestions for gimp chat members
PostPosted: Mon Jun 09, 2014 12:30 pm  (#27) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4041
Location: Canada
paynekj wrote:
trandoductin wrote:
is there a script-fu procedure to set white/black/mid gray points in levels?

I want to write a script that does this http://blog.patdavid.net/2011/06/getting-around-in-gimp-color-correction.html

by getting pixel values and comparing RGB values to see which points are whitest/darkest/grayest but can't see a procedure in script-fu for setting these white/black/mid gray points.


Maybe gimp-levels:
Attachment:
Untitled.png


but how do you tell it like this is the white point and this is the black point and this is the gray point like the eye dropper that the user uses to choose these points?

Okay so I can set each Red/Green/Blue Channel in levels to black and white points, but what about the middle gray? what's the math behind gamma?

_________________
TinT


Top
 Post subject: Re: Script Requests/Suggestions for gimp chat members
PostPosted: Mon Jun 09, 2014 1:40 pm  (#28) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
trandoductin wrote:
Okay so I can set each Red/Green/Blue Channel in levels to black and white points, but what about the middle gray? what's the math behind gamma?

You should double-check things, but I believe gamma can be calculated as follows:

; gray-color is the RGB value of the gray point: (list red green blue)
; gray-pt is value of the particular channel's gray point
; black-pt is value of the particular channel's black point
; white-pt is value of the particular channel's white point

(define (gray-pt->gamma gray-color gray-pt black-pt white-pt)
  (let ((luminosity (+ (* (car gray-color) 0.2126)
                       (* (cadr gray-color) 0.7152)
                       (* (caddr gray-color) 0.0722) ))
        (range (- white-pt black-pt))
        (offset (- gray-pt black-pt)) )
    (/ (log (/ offset range))
       (log (/ luminosity range)) )))

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Script Requests/Suggestions for gimp chat members
PostPosted: Mon Jun 09, 2014 1:45 pm  (#29) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4041
Location: Canada
thanks alot!
I'll try it see what i get.

_________________
TinT


Top
 Post subject: Re: Script Requests/Suggestions for gimp chat members
PostPosted: Mon Jun 09, 2014 2:02 pm  (#30) 
Online
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4758
I use Luca Dealfaro's scripts to correct colors. He uses curves, so his code would be a very good example.

_________________
Image


Top
Post new topic Reply to topic  [ 30 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Sympathy for Our "Down Under" Members

53

No new posts Mini-Chat

0

No new posts Welcome to Font Chat

6

No new posts Attachment(s) Only a few humans to chat with...

1


cron

* Login  



Powered by phpBB3 © phpBB Group