Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Design > Adobe Photoshop

This chapter is from the book

Resizing an Image

Many of your images will probably not be sized to the exact dimensions you need. You have several options at your disposal. To change the size of an image, you can use the Image Size or Canvas Size commands. You can also use the Crop tool or Free Transform command to make an adjustment. You can use these choices individually or in combination to achieve the desired results.

Image Size

The Image Size command lets you permanently reassign the total pixel count, as well as resolution, for a particular image. You can also use this command to upsample or downsample an image. This is an easy way to size an image to a specific height or width. Let’s put the command into action:

  1. Open the file Ch04_Flower.tif from the Chapter 4 folder.

  2. Choose Image > Image Size.

    The Image Size dialog box offers several choices. You can choose to manipulate the pixel dimensions of the image (measured in pixels or percent). You can also modify the print size, which is the size of the image when printed. You can modify the print size based on percent, inches, centimeters, millimeters, points, picas, or columns. The most common choices are percent, inches, or centimeters, because most users easily understand these units of measure.

  3. Set the Document Size to measure in inches. Specify a new height of 4 inches.
  4. Be sure to select the Resample Image option if you want to change the pixel dimensions. Choose the method to Resample Image that is most appropriate for your image. Bicubic is the most common method, but you may have special circumstances. See “Choose an Interpolation Method” earlier in this chapter.
  1. Leave the Constrain Proportions box selected, or you will introduce distortion. You generally want to keep the width and height constrained to the same ratio so the image resembles its original appearance.
  2. Click OK.

Canvas Size

The canvas size is your work area. When you create a new document, you can specify the size of your canvas. When you scan a photo or import a digital image, the canvas size is set to the edge of the image. You may need to change the canvas size to crop or extend the canvas of your image to work on specific areas of the image. Let’s try it out:

  1. Open the file Ch04_Beach.tif from the Chapter 4 folder.
  2. Choose Image > Canvas Size.

    When you launch the Canvas Size command, you’ll see the pixel dimensions of your current canvas. You can specify a new canvas size using a variety of measurements. Pixels is a useful measurement if you’re creating screen graphics, whereas inches or centimeters is easier to understand for print work.

    Let’s place a uniform border around the image.

  3. Select the Relative check box. This disregards the numerical values of the current canvas size and allows you to specify a new amount to be added to the existing image.
  4. Set the anchor point for the image to be centered. This will expand the border in all directions around the center of the current image.
  5. Add a quarter-inch border on all sides. Type .25 inches into the Width and Height fields.

  6. Specify a Canvas extension color. This is the color that Photoshop places around the image when you change the canvas size. You can choose to use the foreground or background colors that are loaded in the toolbox. You can also use white, black, gray, or other, which can be any color you specify. In this case, choose white.
  7. Click OK.

Crop Tool

With the Crop tool you can change a viewer’s perception of an image. You can choose to tighten the area of interest of an image, which allows you to de-emphasize (or even eliminate) parts of a photo and improve the image by better framing the subject.

You can invoke cropping in two ways. The first method involves making a selection with the Rectangular Marquee tool, and then choosing Image > Crop. While this works fine, it does not offer as much control as using the second method, the Crop tool. Let’s put method two into action:

  1. Open the image Ch04_Riders.tif from the Chapter 4 folder.
  2. Choose the Crop tool from the Tools panel or press C.
  3. With the Crop tool, make a selection to crop the image. In this case, removing the rider on the far left (who is chopped off) will improve the composition of the image. Additionally, reducing the headroom (space above the riders’ heads) will also improve the image’s appearance.
  4. You can refine the crop selection after it is made. Mouse over an edge of the crop until the pointer changes to a double-headed arrow, then click and drag on the crop selection border to pull the crop tighter or expand it looser. Additionally, you can click a corner of the crop border to expand two sides at once.

  5. Examine the crop. Make sure you’ve selected the Shield check box in the Options bar. This gives you a better idea of the area to be cropped.
  6. When satisfied with the crop, press Return/Enter or click the Commit button (check mark) in the Options bar. The shielded (darkened) areas will be cropped. To cancel, press the Esc key.

Power crop

It is possible to crop and resize an image at the same time. I refer to this technique as a power crop, and it is a huge time-saver. Before cropping, you can type the desired size of your final image into the Options bar. When you drag to crop the image, your box will constrain to the proper aspect ratio. This allows you to resize and crop in one step.

Let’s crop an image to a 4-inch by 4-inch square at 200 ppi.

  1. Open the file Ch04_Night_Street.tif.
  2. In the Options bar, type 4 in (as in inches) into both the Width and Height fields.
  3. In the resolution field, type 200 and set it to pixels/inch.
  4. Drag to crop the image. Your crop selection is constrained to the shape you specified in the Options bar.

  5. Click the Commit button or press Return/Enter. When finished cropping, you may want to click Clear to reset the tool’s default settings.

Nondestructive cropping

Cropping is very important, but it’s also permanent. When you crop an image, you permanently discard data. Nondestructive editing is a workaround that allows you to crop an image and keep the cropped pixels available for future use. Nondestructive editing provides you with flexibility throughout the design process. Let’s put the technique to the test:

  1. Open the image Ch04_Nondestructive.tif from the Chapter 4 folder.
  2. To crop nondestructively, you must convert the Background into a standard layer. You’ll explore layers in depth in Chapter 8, “Compositing with Layers.” For now, double-click the word Background in the Layers panel. Name the layer Car and click OK.
  3. Select the Crop tool by pressing C.
  4. Mark out an area to crop.

  5. In the Options bar, change the Cropped Area to Hide (Delete is selected by default).

  6. Click the Commit button or press Return/Enter.
  7. Select the Move tool by pressing V (as in moVe, the letter M is used by the Marquee tool). Drag in the image and reposition it; the original pixels are still available, allowing you to modify the crop in the future.

Perspective cropping

Some images will have visible distortion, which is often caused by the camera not being square with the subject. If the photographer was higher (or lower) than the image or if the photo was taken at an angle, you will see distortion. In some cases, this distortion is part of the shot composition and is desirable. In others, the distortion can be distracting. Let’s square off an image:

  1. Open the file Ch04_Perspective.tif from the Chapter 4 folder.
  2. Select the Crop tool by pressing C.
  3. Crop around the window in the photo as tight as you can to frame it.
  4. In the Options bar, set the Crop to Delete, not Hide. Then select the Perspective check box.

  5. Click the Shield Color to select a new color. In the Color Picker, select a bright red to make it easier to see the cropped area.
  6. Drag the upper-right and upper-left corners in toward the center. You are trying to line up the crop borders parallel to the edge of the window. The crop selection will no longer look rectangular.

  7. Click the Commit button or press Return/Enter. The resulting image should appear as if the photo was squared and the camera was level.

Rotate Canvas Command

Sometimes your image will need to be rotated or flipped. Loading your image upside down on the scanner, loading a slide backwards into a slide scanner, or turning the camera on its side when taking a portrait often causes inverted or reverse images. You may also want to make a change to your image for compositional purposes.

The Rotate Canvas command offers several choices. You can choose to rotate the image 180° (half a rotation), 90° clockwise or counterclockwise, or an arbitrary amount (the user types in a number of degrees). Additionally, the entire canvas can be flipped (creating a mirrored image). You can choose to flip the canvas horizontally or vertically:

  1. Open the image Ch04_Rotate.tif from the Chapter 4 folder.
  2. Choose Image > Rotate Canvas 90° CCW (counterclockwise). The image is now properly oriented.

Free Transform Command

The Free Transform command is another useful way to rotate and size an image. It works best when you have an object located on its own layer or if you have an active selection. You’ll explore selections and layers in much greater detail in future chapters. For now, let’s work with a simple layered image that has already been prepped.

  1. Open the file Ch04_Free_Transform_Basic.psd.

  2. This image has two layers: a background, which is a gradient, and a vector shape layer. A vector layer is a special layer in Photoshop. It can be resized and transformed repeatedly with no degradation in quality. Vector layers use math to describe curves and can be freely manipulated.
  3. If it’s not visible, call up the Layers panel by selecting Windows > Layers.
  4. Select the Vector Shape layer so it is active.
  5. Choose Edit > Free Transform or press Command/Ctrl+T.

You can access several controls for the Free Transform command by right-clicking/Control-clicking. Try the following transformations on the Vector Shape layer. You can press the Esc key to cancel the transformation or Return/Enter to apply it.

  • Scale: You can scale by dragging a handle. Hold down the Shift key as you drag a corner handle to scale proportionately. Hold down the Option/Alt key to scale in both directions simultaneously. To scale numerically, enter a value in the Options bar.

  • Rotate: You can choose to rotate a preset amount by selecting Rotate 180°, Rotate 90° CW, or Rotate 90° CCW. To rotate freely by dragging, move your mouse outside the Free Transform box. It will become a curved, two-headed arrow. Hold down the Shift key while rotating to constrain the rotation to 15° increments. Additionally, you can rotate numerically by entering degrees in the rotation box in the Options bar.

  • Skew: Skewing an image creates a sense of distortion, as if the image were leaning. To skew the image, hold down Command/Ctrl+Shift and drag a side handle (not a corner handle). The cursor will change to a white arrowhead with a small double arrow.
  • Distort: If you want to distort an image freely, choose Distort. This allows you to move the corners of the image freely (a process also known as corner-pinning). You can also access this command by pressing Command/Ctrl while dragging a corner point.
  • Perspective: Transforming perspective creates the illusion that the image is being viewed from above or from the side. You can access this command by pressing Command+Option+Shift/Ctrl+Alt+Shift or from the context menu. This is a useful command to fix perspective problems or to add perspective effects.
  • Warp: The Warp command was first introduced in Photoshop CS2. It allows you to distort an image into a number of predefined shapes available in the Options bar (such as Arch, Flag, or Twist). By choosing Custom, several points can be freely dragged to distort the image as desired.

  • Flip Horizontal and Flip Vertical: These simple commands let you flip an individual layer without flipping the entire canvas.

The Free Transform command has one major benefit over choosing individual transform commands from the Image menu: Free Transform lets you apply transformations in one continuous operation, which reduces quality loss in raster images.

Using Smart Objects Before Transforming

Adobe launched a new technology with Photoshop CS2 called Smart Objects. This powerful command allows you to embed raster or vector data into a layer. The layer can then be transformed indefinitely because the embedded data remains editable and scalable. You can convert one or more layers into a new Smart Object.

A Smart Object is simply one file embedded inside another. This can be very useful because Smart Objects allow greater flexibility than simply applying the Free Transform command to a regular layer. With a Smart Object, you can perform multiple nondestructive transforms with no loss in quality (as long as you don’t exceed the pixel dimensions of the original raster object).

  1. Open the file Ch04_Smart_Object.psd from the Chapter 4 folder.
  2. Select the layer City in the Layers panel.
  3. Choose Layer > Smart Objects > Group into New Smart Object.

  4. Invoke the Free Transform command and scale down the image to a very small size. Apply the transformation.
  5. Invoke the Free Transform command and scale up the image to its original size. Apply the transformation. Notice that the image remains clear.

When you place a vector object into Photoshop (such as an Adobe Illustrator or EPS file), it will automatically come in as a Smart Object. Additionally, you can choose Layer > Smart Objects > Group into New Smart Object for raster-based layers.

Peachpit Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Peachpit and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about Peachpit products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites; develop new products and services; conduct educational research; and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email ask@peachpit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by Adobe Press. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.peachpit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020