Saturday, 15 March 2008

 

Making ID Photos with GIMP

You can make ID photos cheaply using GIMP:

  1. Take a head-and-shoulders picture with your digital camera.
  2. Load or paste the image into GIMP.
  3. Rotate the image, if necessary, to a portrait orientation using menu item Image / Transform / Rotate 90 ….
  4. Shrink the image to one quarter the original size using menu item Image / Scale Image. You have to calculate the required pixel size because the Scale Image doesn't have a "shrink by half" function.
  5. Create a new image with the dimensions of the original image, in landscape orientation.
  6. Select menu item Image / Configure Grid and set the spacing so that it matches the size of your shrunk image. The idea is to have a grid as per ASCII art below:
    +--+--+--+--+
    |  |  |  |  |
    +--+--+--+--+
    |  |  |  |  |
    +--+--+--+--+
    
  7. Select menu item View / Snap to Grid and View / Show Grid.
  8. Copy and paste your shrunk image into the new image. You should be able to fit 8 images in one picture. Use the grid to help you position the images in each cell. Positioning all images in the grid's cells also makes it easier to cut the photos after they have been printed.

My camera takes 3072 x 2304 pixel images (or 6:4.5 ratio), so if I use 15cm x 10cm (6:4 ratio) paper, the images on the left and right edges would be cropped unless I further shrink the images by 5%.

Labels:


Tuesday, 11 March 2008

 

How to Extend Image with GIMP

If you have an image with a plain background that is too short or narrow, here's how you can extend it using GIMP 2.x. Note that extending an image is not the same as stretching an image using a transformation; important elements in the image are not distorted, just moved (see ASCII art below).

+----+     +------+
|A  B| ==> |A    B|
+----+     +------+
  1. Open the image file.
  2. Select menu item Image / Canvas.
  3. In Set Image Canvas Size dialog, uncheck the link between Width and Height, enter the required dimensions, then press the Resize button.
  4. Select menu item Layer / Layer to Image Size. You have to extend the background layer because you cannot see any part of the image beyond the background layer's boundaries.
  5. Use Rectangle Select Tool, select area to move, then copy selection to clipboard.
  6. Paste selection into image (which creates a Floating Selection in the Layers dialog).
  7. Move the selection to the required position in the layer. If you want to precisely place the selection, you should zoom in and use the cursor keys.
  8. When you are satisfied with the position of the selection, use Layer / Anchor Layer to put it back into the background layer.
  9. Use the Color Picker Tool to select a colour, then use a Pencil Tool or Paintbrush Tool to touch up the background.

Note that you can only move the selection after you have created a Floating Selection, which confused me initially because I thought that just copying a selection would give me an object to move.

Labels:


Sunday, 28 October 2007

 

GIMP and Inkscape Stylus Tracking Problem

If you use a Wacom Graphire tablet and drawing tools GIMP 2.4 or Inkscape 0.45.1 on Windows Vista, you may find the cursor unresponsive; for instance, it would halt and jump to a new location after a some seconds of use. The problem seems to be caused by the underlying GTK library not processing all the events from the tablet device. Drawing tools that use different libraries, such as Paint.Net don't have this problem.

A work-around is to avoid using devices via the WinTab interface. Just add the following option to the Windows shortcut for the GIMP and Inkscape: --no-wintab.

There's some drawbacks of this work-around:

2008-05-06: Another bug to track is Wacom Bamboo Doesn't Function with GTK apps in Win32.

Labels: ,


Friday, 26 October 2007

 

GIMP 2.4 Released

GIMP 2.4 has been released. For occasional users with Windows Vista, the most noticeable change is that it only takes seconds to load after the first time; in version 2.2.x, it used to take about half a minute. However, support for Wacom tablet is not good; the pointer still freezes after some seconds. Maybe the next version of GTK would improve the situation?

Labels: ,


Wednesday, 15 August 2007

 

Synaptics Touchpad Sketch Utility

Tried drawing with the Synaptics touchpad; after all, there should be a way to map your finger's position to an absolute location in a window or on the screen. Found a little Synaptics Sketch utility for doodling, but it was pretty useless because it doesn't show your finger's position before you make a mark and you can only save your image in a proprietary "SKE" format. Oh, well.

Labels:


Saturday, 11 August 2007

 

GIMP Transparent Backgrounds

Steps for making a transparent GIF layer in GIMP.

  1. Open your GIF image file.
  2. Open the Channels tab. You should see a single Indexed channel.
  3. Add Alpha Channel (Layer / Transparency / Add Alpha Channel). You should see a new Alpha channel added in the Channels tab.
  4. Make a selection by selecting a colour (Select / By Color then click on the area with the required colour).
  5. Optionally, enlarge the selection (Select / Grow, then enter the number of pixels in the Grow Selection dialog). See note below.
  6. Clear the selection (Edit / Clear).
  7. Save your GIF image file.

When making a transparent GIF with GIMP, sometimes the borders of the image can be a little ragged, especially next to a curve with antialiasing. One solution is to "grow" the selection by one pixel (Select / Grow) before clearing all the pixels for the transparent layer.

Labels:


This page is powered by Blogger. Isn't yours?