knowledge-kitchen

Editing Raster Images - A Hands-On Guide to Photoshop and GIMP (No Slides, Please)

This document has been autogenerated from slides.


a hands-on guide to Adobe Photoshop and GIMP

  1. Overview
  2. Creating a New Image
  3. Drawing Tools
  4. Layers
  5. Selecting Areas
  6. Moving Content
  7. Text
  8. Layer Masks & Transparency
  9. Cropping
  10. Exporting for the Web
  11. Animated GIFs
  12. Conclusions

Overview

Concept

In digital image theory, computers store images as either raster or vector data.

Editing concepts

Photoshop and GIMP share their raster image editor concepts in common:

Editing concepts (continued)

File types

While editing, you save your work as a native document specific to the application you are using. That file type preserves all layers, masks, and history of edits.

Creating a New Image

The idea

Before drawing, create a blank canvas to draw onto.

Dimensions

The dimensions set how many pixels wide and tall the image will be.

Resolution

Resolution is the number of pixels per inch (PPI) - how densely those pixels are packed when the image is printed or displayed at a physical size.

Color mode: RGB vs. CMYK

The color mode determines how the color of each pixel is described.

Bits-per-channel

A channel holds the data for one color across the entire image.

Bits-per-channel (continued)

Bit depth is how many bits are used to store each channel’s value for each pixel - controlling how many distinct intensities that channel can represent.

Drawing Tools

The idea

Drawing tools let you add color to the pixels of an image by drawing or painting onto it, in simulation of physical pencils and brushes.

Foreground vs. background color

The toolbox shows two overlapping color swatches that the drawing tools draw with.

The color picker

Click either swatch to open the color picker dialog and choose a new color.

Pencil

The Pencil draws hard-edged strokes with no anti-aliasing - every painted pixel is fully the foreground color with no blurrded or faded edges.

Paintbrush

The Paintbrush lays down soft-edged strokes of the foreground color. It is meant to simulate the behavior of a physical paintbrush.

Eraser & fill

A couple of close cousins to the brush:

Pre-set geometric shapes

Sometimes you want perfect rectangles, ellipses, or lines rather than freehand strokes.

Layers

The idea

Layers are like a set of transparent sheets stacked one-on-top-of the imageother. You can draw on, move, and restyle each sheet independently of the others.

The Layers panel

Both programs show a Layers panel (usually docked on the right).

Working with layers

Common operations - nearly identical in both tools:

Advantages

Placing visual elments on separate layers while you work helps…

The web browser never sees your layers - they exist only in the “layered” .psd/.xcf file and not in the “flat” exported file you include in a web page.

Selecting Areas

The idea

A selection defines which pixels your next action will affect. Everything outside the selection is protected.

Geometric selections

For regular shapes:

Freehand & polygonal selections

For irregular shapes:

Selecting by color

Often the fastest way to select is to let the program find similar pixels for you.

Refining a selection

Selections can be combined and adjusted:

Moving Content

The idea

Once pixels are selected, you’ll often want to reposition them within the canvas.

What gets moved?

The key question is always: move what, exactly?

Copy, cut, and paste

Moving content between layers or images using the clipboard:

Nudging and transforming

For precision:

Text

The idea

The Type / Text Tool adds editable, styled words to your image on their own layer.

Styling text

While the text layer is active, set its properties in the tool options or a character panel:

Text on the web

Text baked into an image is just pixels - the browser can’t select, search, or resize it, and it won’t stay crisp when scaled.

When un-searchable text is desirable

Baking text into pixels deliberately hides it from text-scanning software, which is occasionally useful:

When un-searchable text is desirable (continued)

Layer Masks & Transparency

The idea

A layer mask controls which parts of a layer are visible - without permanently erasing anything.

This is non-destructive: the hidden pixels still exist and can be revealed again just by painting the mask white.

Creating a layer mask

Painting the mask

With the mask selected, paint with black or white using the brush:

Layer opacity vs. masks vs. transparency

Three related ways to control “see-through”:

Cropping

The idea

Cropping trims away the outer edges of an image to improve composition or fit a required size.

Tips

Exporting for the Web

Flatten, then export

Web browsers can’t read .psd or .xcf files. You must export a flattened copy in a web-friendly format.

Exporting in Photoshop

Exporting in GIMP

Optimize for fast loading

A few habits keep web images small and pages fast:

Animated GIFs

The idea

An animated GIF plays a short, looping sequence of images. The trick: each layer becomes one frame of the animation.

Building an animation in GIMP

  1. Put each frame on its own layer, stacked in playback order.

  2. Optionally name a layer (100ms) to set that frame’s duration, or (replace) / (combine) for frame disposal.

  3. Preview with Filters ▸ Animation ▸ Playback.

  4. File ▸ Export As…, name it animation.gif, and check “As animation” and “Loop forever” in the export dialog.

Building an animation in Photoshop

  1. Open the Timeline panel (Window ▸ Timeline) and choose Create Frame Animation.

  2. Add frames, and for each frame toggle which layers are visible.

  3. Set each frame’s delay time and the looping option (Forever) at the bottom of the panel.

  4. Export with File ▸ Export ▸ Save for Web (Legacy), choosing the GIF format.

Keep them small

Animated GIFs can balloon in file size quickly.

Conclusions

You now have a hands-on map of raster editing in both Photoshop and GIMP.

Thank you. Bye.