468 CHAPTER (Cool web site) 12 ADDITIONAL TOPICS gimprc Most

468 CHAPTER 12 ADDITIONAL TOPICS gimprc Most of your saved preferences are stored in a file called gimprc. If you ve changed any preferences from the default, the file might include lines like these: # GIMP gimprc # # This is your personal gimprc file. Any variable defined in # this file takes precedence over the value defined in the # system-wide gimprc: /etc/gimp/2.0/gimprc # Most values can be set within The GIMP by changing some # options in the Preferences dialog. (interpolation-type lanczos) (default-font “Helvetica Bold Italic”) (default-image (width 500) (height 400) (unit pixels) (xresolution 72.000000) (yresolution 72.000000) (resolution-unit inches) (image-type rgb) (fill-type background-fill) (comment “Created with The GIMP”)) (undo-levels 11) (resize-windows-on-resize yes) You ll probably recognize most of the options as preferences that are settable in the Preferences window. But what s that default-font line? Try as you might, you won t be able to find a default font setting in the Preferences window. The GIMP can understand preferences beyond the ones exposed in the Preferences window, and editing gimprc is the way to set them. As with editing scripts or plug-ins, you should use a plain text editor to edit gimprc (or any other file inside your GIMP profile), not a word proces sor (Chapter 11, Why a Text Editor? , explains why). First, you ve probably already noticed that the syntax looks like Script-Fu: everything is delimited by parentheses. Options that take multiple values, such as the default-image settings, take a list of parenthesis-delimited lists. You may wonder about that comment referencing /etc/gimp/2.0/gimprc: why is it 2.0, and not 2.2 or 2.4? GIMP sometimes confusingly uses 2.0 to refer to resources such as plug- ins or preferences that can be used by any GIMP version starting with 2. Linux and Unix users can get the latest on gimprc by typing man gimprc into a terminal window (it also works on Macs if you used DarwinPorts to install the GIMP). This displays the manual page for gimprc, updated as of your current GIMP version, and should tell you all the latest options. On other platforms, or if you don t have the manual page installed, you can read it online at http://www.gimp.org/man/gimprc.html. How do you find out which options you can set in gimprc? Here are some of the highlights that aren t already accessible through the Preferences window.
Visit our web design programs services for an affordable and reliable webhost to suit all your needs.

Leave a Reply