GIMP: Difference between revisions

From ArchWiki
Line 51: Line 51:
   </match>
   </match>
  </fontconfig>
  </fontconfig>
=== Hide Noto ===
Add the following to {{ic|~/.config/GIMP/2.10/fonts.conf}} if you have {{Pkg|noto-fonts}} installed:
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
  <rejectfont>
    <glob>/usr/share/fonts/noto</glob>
  </rejectfont>
</fontconfig>
See {{man|5|fonts-conf}} and [[Font configuration#Whitelisting and blacklisting fonts]] for more information.


=== PDF files ===
=== PDF files ===

Revision as of 15:04, 11 August 2018

GIMP is a powerful raster image editing program, and commonly used for photo retouching, image composition, and general graphic design work. It can be used as a simple paint program, an expert quality photo retouching program, an online batch processing system, a mass production image renderer, an image format converter, etc.

Installation

Install the gimp package.

Tip: The GIMP implements a plug-in system and the repositories (official, AUR) contain more plug-ins than listed in the package's optional depends.

Tips and tricks

Captions

To caption an image follow these steps after inputting the desired text:

  1. Click Layer and Text to Path
  2. Click Select and From Path
  3. Click Select and Invert
  4. Click Edit and Stroke Path

Create a circle

To draw a circle in GIMP follow these steps:

  1. Select the Ellipse tool and hold Shift
  2. Click Edit and Fill with Color
  3. Click Select and Shrink
  4. Press Delete
Tip: Grow and Border give the same result.

Troubleshooting

Green text

Add the following to ~/.config/GIMP/2.10/fonts.conf if you see green tint around letters with antialiasing enabled:

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
  <match target="font">
    <edit name="rgba" mode="assign">
      <const>none</const>
    </edit>
  </match>
</fontconfig>

Hide Noto

Add the following to ~/.config/GIMP/2.10/fonts.conf if you have noto-fonts installed:

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
  <rejectfont>
    <glob>/usr/share/fonts/noto</glob>
  </rejectfont>
</fontconfig>

See fonts-conf(5) and Font configuration#Whitelisting and blacklisting fonts for more information.

PDF files

GIMP requires the poppler-glib library to open PDF files. Without this library GIMP will say that a PDF file is "unrecognized" when an attempt to open a PDF is made.

Since GIMP rasterizes PDF files right from the start, it will not exploit intrinsic PDF capabilities while editing them. Other programs (like LibreOffice Draw) can be used to better edit PDF files.

See also