Digital images

Readings

On the Web

Introduction to digital images

A digital image is...

Context for pixel sizes

Computer screens are commonly 800 or more pixels wide. The lowest screen display size is 640 x 480 pixels. In 2006, 1024 X 768 is the most common screen resolution. At GC, most computers have more. On a PC, right-click on screen background and pick properties to see how many pixels on your screen.

Image width (in pixels)
        width    
high quality -- large file size      
  3872 width of the largest image (highest "resolution") of a $1000 digital SLR (Nikon D80) "10 Megapixel" digital camera

  1600 image width at the highest resolution of a "2 Megapixel" (ca. $200) digital camera

  1024 Most common width settings for PC screens of computers connected to the Internet.

minimum width for a 10" X 8" photo print at Clubphoto.com

  800 full width of the screen for about 30% of folks browsing the net. (See onestat.com).
  640 minimum width (in pixels) of PC computer screens
minimum width for a 5" X 3.5" photo print at Clubphoto.com

  550 Typical width of a full-size SST website image.

  240 Width of a typical Smartphone screen screen.

  160 Barbie camera width of the digital images saved by a Barbie digital camera...ca. $30.


  100

width of SST thumbnail images


not much detail -- but small file size 30 width of thumbnail images used for navigation on the Washington Post Van Gogh exhibit website

Image resolution, Image size

Resolution measures how close together a device, like a printer or a screen can place pixels. For example, a $200 laser printer can do 600 dpi ("dots per inch", that is, pixels per inch) these days, and glossy magazines would print out in the thousands of dpi. Computer screen resolution--at around 72dpi--is relatively low.

In the web world, we think of our medium (the screen) in terms of pixels, not in terms of "inches", and so web designers can pretty much ignore "resolution" and just pay attention to the total number of pixels.

Using Adobe Photoshop to edit digital images

Photoshop is probably the standard tool for dealing with photos and related graphics, both in print and web media. Some other software options to know about:

Selection tools

Selection tools include

Here's a photo of Ben to practice on...

The most important key combination in Photoshop is probably Ctrl-Z which means Undo!

Extremely handy things to know about selection tools:

Choosing colors

eyedropper toolMany tools use the foreground or background colors (at left, purple, and white respectively). Clicking on the foreground (or background) color box brings up a color picker that can be used to set colors. If you want a color that already exists in the image you're editing, select the eyedropper tool. Left-click on a color to select that color as the foreground color. Right-click to select as background color.

Using the text tool

 

Creating thumbnails

On the Web

the Crop toolUse the crop tool to select a portion of your image. Double-click inside your selection to execute the crop..Then re-size ("Image | Image Size"), then sharpen ("Filters | Sharpen"). Try this photo from Cuba

the effect of averaging neighboring pixelsWhen you "downsize" an image, photoshop averages neighboring pixels into one pixel in the new image. This will blur high contrast edges. So, in general you should sharpen an image after you downsize it significantly to get back to a reasonable edge contrast. Typical Unsharp Mask parameters might be 40%, 1.5 pixels, threshhold 0.

Photo repair

Some typical photograph editing...

Backlit or dark subjects in photos (Gamma, or midtone correction)

Here's a backlit photo image. or another with part of the subject just too dark. You can quickly improve the photo quality by adjusting the midtones. Select "Image | Adjust | Levels" and you'll see this kind of dialog box:

Pull the middle slider to the left (or enter a larger number in the middle, "gamma level" box indicated) to lighten the midtones without severely affecting the highlights or deep shadows. Or, you can type a number into the gamma input box (underlined above). Experiment a bit. 1.2 is likely not noticeably distorted. 3.0 probably is...

Dynamic range

The photo below looks dull because it contains little in the way of very bright areas or very dark areas

You can increase the dynamic range of an image--that is, 'stretch out' the range of brightness in the image by bringing the far left and far right sliders in to the edges of the image levels spectrum as below. (The median gamma level has also been increased).

Color balancing

After you adjust levels, you may still wish to do some color balancing. Access this menu from "Image | Adjust | Variations". Here's a dark, and perhaps overly red image: KentMia.jpg. Here's what the variations menu looks like

Set the "Fine ... Course" closer to "Fine" and you'll see less drastic variations. You can explore the effect of making the image "greener" or giving it more in the way of the other color directions.


Repairing smudges

Image file types

Some common graphics/image file formats...

.psd
  • Photoshop's native, and preferred format
  • Saves information about layers, text in layers (text in layers is editable)
  • Files in this format are big, but keep all the info you could want
  • Not directly viewable in a web browser
.jpg, .jpeg
  • No layer info preserved
  • offers a variable compression level that does a good job of photographs, resulting in fairly small files. Compressing the image ever smaller does result eventually in image information loss.
  • Is directly viewable by browsers
  • No transparency support
.gif
  • Uses a compression scheme that results in small files, particularly for images with a small number of colors, and large areas all the same color (cartoons, line-art, logos...)
  • No .gif image may contain more than 256 different colors. (All the other formats listed here let you use any of more than 16 million colors)
  • Is a proprietary format (Originally Compuserve, now Unisys), even though widely used on the web
  • Most browsers can display .gif images directly
  • No layer info stored
  • Supports transparency
  • usually all information retained
.png
  • Fireworks prefers this format, though it's in the public domain
  • Allows you to store layers, and more
  • A reasonable amount of compression, resulting in moderate filesizes
  • Recent browsers will display .png files without a plugin
  • Supports not only transparence, but also translucence.
.bmp
  • "Bitmap" format is a direct storage, pixel by pixel, of exactly what you see on the screen.
  • No compression, no nuthin'
.pdf
  • A proprietary (Adobe) format
  • Very similar to postscript.
  • Allows embedding of hypertext links
  • Stores text with a "font" model, not a graphics model...
  • Viewable with the fairly, widely distributed (and free ) pdf plugin viewer

In light of the above, you should probably keep an "original", editable image in .psd, or .png format, and create a copy at the final size for display on the web in .gif or .jpg format