Dive into this comprehensive Photoshop tutorial to learn how to resize images for the web, reduce image size with resampling, and set JPEG quality, helping to optimize your website's Google ranking.
This exercise is excerpted from Noble Desktop’s past Photoshop training materials and is compatible with Photoshop updates through 2020. To learn current skills in Photoshop, check out our Photoshop Bootcamp and graphic design classes in NYC and live online.
Note: These materials are provided to give prospective students a sense of how we structure our class exercises and supplementary materials. During the course, you will get access to the accompanying class files, live instructor demonstrations, and hands-on instruction.
Topics covered in this Photoshop tutorial:
Resizing images for the web, Reducing image size with resampling, Setting JPEG quality
Exercise Preview
Photo by Dan Rodney
Exercise Overview
Many times, the same content will be used for both print and web and needs to be converted appropriately. Web images use RGB color and the width/height of the file is what matters (not the ppi resolution setting in Photoshop). Also, when you’re saving images for the web, file size becomes an important issue. Google considers page speed when ranking webpage. Small file sizes mean a faster loading page, which helps your Google rank!
Resizing an Image for the Web
- From the Photoshop Class folder, open the file opera house.jpg.
- Choose View > 100%.
- Before making this web-ready, it’s a good practice to save a copy. Go to File > Save As.
- Next to Format (Mac) or Save as type (Windows), choose Photoshop.
- Name it yourname-opera house-web.psd and click Save.
- Go to Image > Image Size.
-
At the bottom, make sure Resample is checked on.
Resampling
Resampling means to add, remove, or recalculate pixels.
When Resample is checked, the number of pixels actually changes. Either pixels are removed, creating an image with less pixel information, or pixels are added—these “made‑up” pixels often result in a less detailed, more blurry image.
When it is unchecked, resizing or changing the resolution of the image will not affect the number of pixels in the image—but you can convert a large printing, low-resolution image to a smaller printing, high-resolution version, or vice versa.
- Make sure Constrain Aspect Ratio is checked on (darkened).
- To the right of Width, set the menu to Pixels.
-
Set Width to 600 pixels. The height will change automatically to maintain the proportions of the image.
NOTE: The specific pixel dimensions you need will depend on where you’ll use the image, such as social media websites, a corporate website, etc.
-
Click OK.
Notice that it’s now a much smaller image, appropriately sized for our specific use.
Setting JPEG Quality in the Save for Web Dialog
-
Go to File > Export > Save for Web (Legacy).
NOTE: Save for Web is marked as Legacy because Adobe won’t be updating it to support new features such as artboards. Adobe introduced new exporting methods such as File > Export > Export As. Each has pros and cons, and Adobe is keeping Save for Web until the new methods can fully replace it.
A new window appears, allowing you to adjust compression settings and preview the final image. Click the 4-Up tab at the top.
You’re now looking at the original, uncompressed image in the upper left of the window, and three compressed versions, each using a different setting. Click on the upper right image.
-
In the settings on the right, from the menu below Preset, choose JPEG.
NOTE: The JPEG format is best for photos. It maintains good quality at a small file size. Be careful, though—the more you compress JPEGs, the more they will degrade and visual distortions will appear.
-
For the Quality setting on the right side of the window, type 100.
Note that the file size appears under each of the compressed preview images. While this doesn’t cause much visual distortion, we can get a much smaller file if we try a lower quality.
-
Click on the lower left image. Choose JPEG and set the Quality to 0.
This is too distorted for most purposes, but the file size is small!
-
Click on the lower right image. Choose JPEG and set the Quality to 70.
This is getting closer. There’s only minor distortion. The trade-off between quality and file size reaches a good balance here.
Notice that there’s a thicker border around the lower right image preview area. That indicates it’s the selected version. Click Save to save a copy of this one.
-
Make sure it’s named yourname-opera-house-web.jpg.
NOTE: When naming files for the web, do not use spaces in the filename. Spaces will cause problems with web browsers. Use dashes or underscores instead. Photoshop will automatically replace any spaces with dashes.
Navigate to the Photoshop Class folder and click Save (Format: Images Only).
You should now be looking at the original Photoshop file. Go to File > Save. This will save the JPEG quality settings. So if changes need to be made later, it will remember the Save for Web settings we used for this specific file!
Close the file.