It is currently Thu Apr 25, 2024 5:41 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 18 posts ] 
Author Message
 Post subject: Custom padding color
PostPosted: Fri Jun 28, 2013 3:34 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 15, 2013
Posts: 133
GIMP Version: 2.8.6
Operating System: Linux
GIMP Experience: Intermediate Level



I've been trying to figure out how to have my padding color default to my current theme and be able to use a shortcut to make the padding color white. I'm aware I can use a shortcut to select a custom color on the fly, but that is tedious when I know what color I want.

The closest I can get is to set the custom color in preferences to white then a shortcut to to set the padding from theme. (which is backwards of what I want.) White is just too bright and I only want to pull it up as needed.

I've also looked into trying to edit the default theme to set the padding to white there and then using preferences to set my custom color to what my theme uses, but I haven't been able to figure that out. Any guidance here would be Hugely appreciated. I've been wanting to do this for over a year now and hope I can find a way.

Cheers

_________________
Gimp 2.8.16
Arch Linux - XFCE 4.12
Some of my work.


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: Custom padding color
PostPosted: Fri Jun 28, 2013 6:03 pm  (#2) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
A keyboard shortcut to Light Check is the easiest way to go and the closest to white, which isn't that bad. If you do your keyboard shortcut to Custom it only take a second to make a choice, that's not too tedious. :)

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Custom padding color
PostPosted: Fri Jun 28, 2013 6:42 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Jan 15, 2013
Posts: 133
Odinbc wrote:
A keyboard shortcut to Light Check is the easiest way to go and the closest to white, which isn't that bad. If you do your keyboard shortcut to Custom it only take a second to make a choice, that's not too tedious. :)


Thanks for the suggestion Odinbc, but I've already tried that route. I moderate images at fanart.tv and I need to check for cropped drop shadows and such and really need white. (I realize there are other ways to do this, but some are fine if cropped a tad and not really visible.)

The ultimate would be to change the color of Light Check, but then I suppose I'd have to recompile. Was hoping for an easier solution.

_________________
Gimp 2.8.16
Arch Linux - XFCE 4.12
Some of my work.


Top
 Post subject: Re: Custom padding color
PostPosted: Fri Jun 28, 2013 10:04 pm  (#4) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
This might seem odd but it could work for you if the test images are similar sizes.
Make a new white background image a bit larger than the image(s) your testing.
Open as Layers, one or more images to test.

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Custom padding color
PostPosted: Fri Jun 28, 2013 10:57 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jan 15, 2013
Posts: 133
I really appreciate you putting some thought into this. That was certainly creative. :tyspin I might see if that can work somehow for moderating. Right now I just drag the image from my browser and stack them for all the same types. It seems like I would have to open a template canvas ahead of time for each type, but it's worth considering if I can't figure this out otherwise.

I still feel like I'm missing an easier way to do this via a custom gtkrc or something similar. Hacking the binary maybe instead of recompiling? I guess it's time to dig deeper to find out. Just thought I'd pick the brains here before I went that far.

Edit:
Thinking about it a little more, I may be able to pull it off. You can set a custom gtk theme per application with something like this.
GTK2_RC_FILES=/home/USERNAME/.themes/custom.gtkrc gimp

I could duplicate my existing theme and change the property that sets the padding. (Hopefully only the padding.) Now I just need to figure out what that setting is.

_________________
Gimp 2.8.16
Arch Linux - XFCE 4.12
Some of my work.


Top
 Post subject: Re: Custom padding color
PostPosted: Sat Jun 29, 2013 9:00 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
You can change the check padding by going to Edit>Preferences>display>check style>white only.
Not sure if you can set a keyboard shortcut to that though.
Or are you talking about the actual bg color of the GIMP ui?

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Custom padding color
PostPosted: Sat Jun 29, 2013 10:46 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jan 15, 2013
Posts: 133
Rod wrote:
You can change the check padding by going to Edit>Preferences>display>check style>white only.
Not sure if you can set a keyboard shortcut to that though.
Or are you talking about the actual bg color of the GIMP ui?


Hi Rod,
Not the check color, but the actual padding color outside the canvas. Edit>Preferences>Image Windows>Appearance>Canvas Padding Mode/Color.
I attempted my custom theme workaround I mentioned but it doesn't seem to work. Something to do with gnome/xfce overriding the GTK2_RC_FILES= command. I guess for now I'll just shortcut to View>Padding Color>Select Custom Color & View>Padding Color>From Theme. It may be a few more clicks but seems the easiest way to get what I want for now.

I should probably make a feature request to be able to set custom colors for Light Check Color and Dark Check Color, but I'm not hopeful as it seems it would be low priority. All in all it just seems backwards to me the way it works now.
Thanks

_________________
Gimp 2.8.16
Arch Linux - XFCE 4.12
Some of my work.


Top
 Post subject: Re: Custom padding color
PostPosted: Sat Jun 29, 2013 11:19 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
akovia wrote:
Rod wrote:
You can change the check padding by going to Edit>Preferences>display>check style>white only.
Not sure if you can set a keyboard shortcut to that though.
Or are you talking about the actual bg color of the GIMP ui?


Hi Rod,
Not the check color, but the actual padding color outside the canvas. Edit>Preferences>Image Windows>Appearance>Canvas Padding Mode/Color.
I attempted my custom theme workaround I mentioned but it doesn't seem to work. Something to do with gnome/xfce overriding the GTK2_RC_FILES= command. I guess for now I'll just shortcut to View>Padding Color>Select Custom Color & View>Padding Color>From Theme. It may be a few more clicks but seems the easiest way to get what I want for now.

I should probably make a feature request to be able to set custom colors for Light Check Color and Dark Check Color, but I'm not hopeful as it seems it would be low priority. All in all it just seems backwards to me the way it works now.
Thanks


You would be surprised how quickly something like this may get pushed ahead if it's an easy fix.
Might even be easier to request something like this from Onkel or Partha.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Custom padding color
PostPosted: Sat Jun 29, 2013 11:37 am  (#9) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
Rod wrote:
You can change the check padding by going to Edit>Preferences>display>check style>white only.
Not sure if you can set a keyboard shortcut to that though...
With a search in, Edit | Keyboard Shortcuts you can attach shortcuts to almost everything in Gimp.
For example,
1. Search for G'MIC
2. Select G'MIC, hold down Shift + Alt + G, release.
3. Make sure, Save keyboard shortcuts on exit is checked, your done!
Use Ctrl + N first, when needed

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Custom padding color
PostPosted: Sat Jun 29, 2013 2:21 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Jan 15, 2013
Posts: 133
Rod wrote:
You would be surprised how quickly something like this may get pushed ahead if it's an easy fix.
Might even be easier to request something like this from Onkel or Partha.


Sounds encouraging. How would I go about doing that?

_________________
Gimp 2.8.16
Arch Linux - XFCE 4.12
Some of my work.


Top
 Post subject: Re: Custom padding color
PostPosted: Sat Jun 29, 2013 9:09 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
akovia wrote:
Rod wrote:
You would be surprised how quickly something like this may get pushed ahead if it's an easy fix.
Might even be easier to request something like this from Onkel or Partha.


Sounds encouraging. How would I go about doing that?

PM Onkel or Partha here at Gimp Chat.
Select members and search their name (by first letter), select PM or email. Or you can select their name in the board index on any post they have started or responded to, and then select PM from the next window.
Partha also has a email responder contact form on his home page here - http://www.partha.com
I was unable to find a contact form for Onkel on Free Gimp Packagers.
http://sourceforge.net/projects/gimp-pa ... kel_Hatti/

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Custom padding color
PostPosted: Sun Jun 30, 2013 8:45 am  (#12) 
Offline
GimpChat Member
User avatar

Joined: Jan 15, 2013
Posts: 133
Rod wrote:
PM Onkel or Partha here at Gimp Chat.
Select members and search their name (by first letter), select PM or email. Or you can select their name in the board index on any post they have started or responded to, and then select PM from the next window.
Partha also has a email responder contact form on his home page here - http://www.partha.com
I was unable to find a contact form for Onkel on Free Gimp Packagers.
http://sourceforge.net/projects/gimp-pa ... kel_Hatti/


Thanks Rod,
I didn't see your reply soon enough and posted to the gimp-user mailing list.
http://gimp.1065349.n5.nabble.com/Featu ... 39136.html
I'll see if anything comes of that before bothering these guys. I really do appreciate the guidance. :bigthup
Cheers

_________________
Gimp 2.8.16
Arch Linux - XFCE 4.12
Some of my work.


Top
 Post subject: Re: Custom padding color
PostPosted: Sun Jun 30, 2013 8:48 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
akovia wrote:
Rod wrote:
PM Onkel or Partha here at Gimp Chat.
Select members and search their name (by first letter), select PM or email. Or you can select their name in the board index on any post they have started or responded to, and then select PM from the next window.
Partha also has a email responder contact form on his home page here - http://www.partha.com
I was unable to find a contact form for Onkel on Free Gimp Packagers.
http://sourceforge.net/projects/gimp-pa ... kel_Hatti/


Thanks Rod,
I didn't see your reply soon enough and posted to the gimp-user mailing list.
http://gimp.1065349.n5.nabble.com/Featu ... 39136.html
I'll see if anything comes of that before bothering these guys. I really do appreciate the guidance. :bigthup
Cheers


Hope it gets worked out for you. Others may need this option available also. I am always happy to help when, and where i can. :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Custom padding color
PostPosted: Sun Jun 30, 2013 10:48 am  (#14) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4739
akovia wrote:
Odinbc wrote:
A keyboard shortcut to Light Check is the easiest way to go and the closest to white, which isn't that bad. If you do your keyboard shortcut to Custom it only take a second to make a choice, that's not too tedious. :)


Thanks for the suggestion Odinbc, but I've already tried that route. I moderate images at fanart.tv and I need to check for cropped drop shadows and such and really need white. (I realize there are other ways to do this, but some are fine if cropped a tad and not really visible.)

The ultimate would be to change the color of Light Check, but then I suppose I'd have to recompile. Was hoping for an easier solution.


Enlarge canvas (or not), insert white/black layer under image layer? Three lines of script+one shortcut....

_________________
Image


Top
 Post subject: Re: Custom padding color
PostPosted: Sun Jun 30, 2013 11:21 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
ofnuts wrote:
akovia wrote:
Odinbc wrote:
A keyboard shortcut to Light Check is the easiest way to go and the closest to white, which isn't that bad. If you do your keyboard shortcut to Custom it only take a second to make a choice, that's not too tedious. :)


Thanks for the suggestion Odinbc, but I've already tried that route. I moderate images at fanart.tv and I need to check for cropped drop shadows and such and really need white. (I realize there are other ways to do this, but some are fine if cropped a tad and not really visible.)

The ultimate would be to change the color of Light Check, but then I suppose I'd have to recompile. Was hoping for an easier solution.


Enlarge canvas (or not), insert white/black layer under image layer? Three lines of script+one shortcut....

Great idea Ofnuts. I didn't think of a script to just create a white bottom layer larger than the image above.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Custom padding color
PostPosted: Sun Jun 30, 2013 11:24 am  (#16) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4739
Rod wrote:
You would be surprised how quickly something like this may get pushed ahead if it's an easy fix.
Might even be easier to request something like this from Onkel or Partha.

It's not a fix, it's a new functionality... (new dialogs to set the colors, or allow them to be customized in the themes, etc...)

_________________
Image


Top
 Post subject: Re: Custom padding color
PostPosted: Sun Jun 30, 2013 11:29 am  (#17) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
akovia wrote:
I've been trying to figure out how to have my padding color default to my current theme and be able to use a shortcut to make the padding color white. I'm aware I can use a shortcut to select a custom color on the fly, but that is tedious when I know what color I want...
One more suggestion for a faster workflow, use XnView to preview your images.
1. Put all the test images in one folder.
2. In XnView, change to your preferred background colour.
3. Scan through images, when you find an image that needs adjustment, send to Gimp.

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Custom padding color
PostPosted: Sun Jun 30, 2013 11:52 am  (#18) 
Offline
GimpChat Member
User avatar

Joined: Jan 15, 2013
Posts: 133
ofnuts wrote:
Enlarge canvas (or not), insert white/black layer under image layer? Three lines of script+one shortcut....

Well I already made a script to check for transparency issues that inserts 5 colored layers in a layer group at the bottom of the stack. I could probably modify it to enlarge the canvas as well. The only problem I foresee is when dragging an image into a bigger canvas it is not always centered. Ala, more steps if I don't do it all in order.
(define (script-fu-alpha-check image drawable)

(let* (
    (width (car (gimp-image-width image)))
    (height (car (gimp-image-height image)))
    (layer-white (car (gimp-layer-new image width height 0 "FFFFFF"  100 0)))
    (layer-black (car (gimp-layer-new image width height 0 "000000"  100 0)))
    (layer-grey (car (gimp-layer-new image width height 0 "5C5C5C"  100 0)))
    (layer-green (car (gimp-layer-new image width height 0 "00FF00"  100 0)))
    (layer-red (car (gimp-layer-new image width height 0 "FF0000"  100 0)))
    (fg-old (car (gimp-context-get-foreground)))
    (active-old (car (gimp-image-get-active-layer image)))
)

  (gimp-image-undo-group-start image)
   (define alpha-group (car (gimp-layer-group-new image)))
   (gimp-item-set-name alpha-group "Alpha-Check")
   (gimp-image-insert-layer image alpha-group 0 0)
   (gimp-image-lower-item-to-bottom image alpha-group)
    (gimp-context-set-foreground '(255 0 0))
    (gimp-drawable-fill layer-red FOREGROUND-FILL)
    (gimp-image-insert-layer image layer-red alpha-group -1)
    (gimp-context-set-foreground '(0 255 0))
    (gimp-drawable-fill layer-green FOREGROUND-FILL)
    (gimp-image-insert-layer image layer-green alpha-group -1)
    (gimp-context-set-foreground '(0 0 0))
    (gimp-drawable-fill layer-black FOREGROUND-FILL)
    (gimp-image-insert-layer image layer-black alpha-group -1)
    (gimp-context-set-foreground '(255 255 255))
    (gimp-drawable-fill layer-white FOREGROUND-FILL)
    (gimp-image-insert-layer image layer-white alpha-group -1)
    (gimp-context-set-foreground '(92 92 92))
    (gimp-drawable-fill layer-grey FOREGROUND-FILL)
    (gimp-image-insert-layer image layer-grey alpha-group -1)
    (gimp-context-set-foreground fg-old)
    (gimp-image-set-active-layer image active-old)
  (gimp-image-undo-group-end image)
  (gimp-displays-flush)
 
)

)



(script-fu-register

"script-fu-alpha-check"

"Alpha Check..."

"Create background layers of contrasting colors to check transparent artwork against"

"Akovia"

"copyright"

"01-2013"

"RGB*"

SF-IMAGE "Image" 0

SF-DRAWABLE _"Drawable" 0
)




(script-fu-menu-register "script-fu-alpha-check"

                         "<Image>/Filters/Fanart")


Odinbc wrote:
One more suggestion for a faster workflow, use XnView to preview your images.
1. Put all the test images in one folder.
2. In XnView, change to your preferred background colour.
3. Scan through images, when you find an image that needs adjustment, send to Gimp.

Again, more steps and another program to open, but a fine idea. I do have XnViewMP installed.

For now I've gotten used to just using the 2 shortcuts for Padding from Theme & Select Custom Color. It's only 2 extra clicks if I have a white tile already in the color selector, so it's not horrible. I'll just hope the devs might see the usefulness in being able to define Light & Dark check colors in the future. *crosses fingers*

Thank you everyone for the suggestions. :tyspin

_________________
Gimp 2.8.16
Arch Linux - XFCE 4.12
Some of my work.


Top
Post new topic Reply to topic  [ 18 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) GEGL Color Light Fusion (12 blend modes for color overlay)

9

No new posts Attachment(s) Background color chanage and typed text color change

8

No new posts Attachment(s) New Custom Font Tool - Custom Font Lighting Effects GT Style Filter

3

No new posts Attachment(s) Color does not exactly match color in GIMP 2.10 (SOLVED)

9

No new posts Color changes to last color when I touch tablet pen to tablet. HELP

2



* Login  



Powered by phpBB3 © phpBB Group