carol.gimp.org

GIMP2 basics gui

~/gimp-2.2/gtkrc

Disclaimer

I am using a gnu/linux operating system, xfree to draw my computer display and Xfce to determine how my windows behave and a theme (Platinum) to tell them how to look. I get all of this software from Debian testing. TheGIMP pictured and discussed here was acquired from cvs on 2005-01-10 (January 10, 2005 or 10 January 2005). This is all I can talk honestly about and get screen shots of.

Start With a Current gtkrc

This tutorial was written using a vanilla gtkrc I found in my brand new user directory when I updated my cvs version of TheGIMP which lately calls itself gimp-2.3. The gtkrc contains only some configuration for the binding of the help keys, so if you did not change that you should grab a copy of that gimp-2.3/gtkrc and copy it to ~/.gimp-2.2/gtkrc (or whichever is your current gimp version) and work with that. If you have changed these keybindings, then paste the new plug-in preview stuff into that file.

Plug-in Preview Size

TheGIMP received a major overhaul on its previews between gimp-1.2 and Gimp2. TheGIMP shows these previews at a nice size without additional tweaking, however if you would like these previews to be larger or smaller you can edit a file to make them the size you are more comfortable with.

The default plug-in preview size (shown here) is 150 pixels by 150 pixels. Changing the size of your previews will require the use of a text editor.

preview-default


A simple edit to achieve 256x256 pixel plug-in previews

Simply removing one character from your gtkrc file found within TheGIMP's own directory which should be ~/.gimp-2.2/gtkrc unless you or your system administrator changed that during the installation. It is highly recommended to make these changes within the gimps own resource directory, as the gimp tends to use these gtk widgets more than other apps.

gtkrc - /home/carol/.gimp-2.2

File   Edit   Search   Preferences


#
# Adjust the size of previews in plug-in dialogs:
#
style "gimp-large-preview"
{
  GimpPreview::size = 256                                                             
}

# class "GimpPreview" style "gimp-large-preview"                                           


  

Simply remove the "#" from the class line:

gtkrc (modified) - /home/carol/.gimp-2.2

File   Edit   Search   Preferences


#
# Adjust the size of previews in plug-in dialogs:
#
style "gimp-large-preview"
{
  GimpPreview::size = 256
}

class "GimpPreview" style "gimp-large-preview"


  

Save this text file again and restart TheGIMP.

preview-256

Your Gimp2 plug-in previews will now be much larger. You can change it back by putting that character back in front of the class line in the gtkrc file.

It takes a little more work with the text editor to get a size different than the default 150 x 150 pixel area or this easy 256 x 256 pixel area.



Create your own plug-in preview size class

The "commented out" (the "#" symbol in the gtkrc file causes this line to be ignored when gtk looks for instructions in this file on how to draw its widgets) class line in the gtkrc and the style definition above this line could also be treated as an example of how to make your own set of classes for plug-in previews.

gtkrc - /home/carol/.gimp-2.2

File   Edit   Search   Preferences


#
# Adjust the size of previews in plug-in dialogs:
#
style "gimp-large-preview"                                                                 
{                                                                                          
  GimpPreview::size = 256                                                                  
}                                                                                          
                                                                                           
# class "GimpPreview" style "gimp-large-preview"                                           

  

Following this example, I made a few more plug-in preview classes for different preview sizes.

gtkrc (modified) - /home/carol/.gimp-2.2

File   Edit   Search   Preferences


#
# Adjust the size of previews in plug-in dialogs:
#
style "gimp-small-preview"
{
  GimpPreview::size = 144
}

# class "GimpPreview" style "gimp-small-preview"



style "gimp-medium-preview"
{
  GimpPreview::size = 192
}

# class "GimpPreview" style "gimp-medium-preview"



style "gimp-large-preview"
{
  GimpPreview::size = 256
}

# class "GimpPreview" style "gimp-large-preview"



style "gimp-very-large-preview"
{
  GimpPreview::size = 382
}

# class "GimpPreview" style "gimp-very-large-preview"



style "gimp-huge-preview"
{
  GimpPreview::size = 576
}

# class "GimpPreview" style "gimp-huge-preview"


  

Now it is time to try my new preview plug-in classes to see how they look and if they might work better for me. You can highlight and paste them from this web page or download the gtkrc from here and and try them yourself or -- better yet, write and try your own class.

preview-144 preview-192
preview-256 preview-392
preview-576

another-gnu-type

Most all of my software is gnu. thanks!

Creative Commons License

This work is licensed under a Creative Commons License.