smashing-ebook-8

(Grace) #1

A Fix


Our test artwork is 32 pixels wide by 12 pixels high. Drawing a 32 × 12
marquee selection in Photoshop forces the artwork to land exactly where
we want it and to be pixel-aligned. This works every single time.


An Easier Fix


The marquee doesn’t have to be the exact size of your artwork, though. In
our case, a 2 × 2-pixel selection would work just as well, because the center
of an even-width-and-height marquee selection and the center of even-
width-and-height clipboard contents would fall exactly on a pixel boundary,
which is what we want. If the artwork was an odd width and height, then a
1 × 1 selection would have been required.


If you couldn’t be bothered noting your artwork’s dimensions, then by
drawing an appropriately sized marquee, you can draw a 2 × 2-pixel
selection and paste. If the image is blurry on the x axis only, make the
selection 1 × 2 and paste again. If the image is blurry on the y axis only,
make the selection 2 × 1 and paste again. If the image is blurry on both
axes, make the selection 1 × 1 and paste again.

Free download pdf