Optimizing Images for the Web
Images should be properly sized and optimized before being uploaded to Drupal. Large image files can slow down pages, particularly for visitors using mobile devices or slower internet connections.
Optimizing an image means cropping it to the appropriate dimensions and reducing its file size while maintaining good visual quality.
Image Size and Quality
Use high-resolution images that meet the recommended dimensions for the component you’re using. Images that are too small may appear blurry or pixelated when displayed at larger sizes.
- Dimensions: Crop and resize images to the recommended dimensions for their intended use.
- File Size: Aim to keep images under 1 MB whenever possible without sacrificing noticeable image quality.
- File Format: JPG or WebP is recommended for most photographs. PNG is useful for graphics that require transparency.
- Aspect Ratio: Common image proportions include 16:9 (landscape), 4:3 (standard), and 1:1 (square).
See Adding Images and Hero Images and Options for recommended dimensions.
Optimizing Images with Adobe Photoshop
Adobe Photoshop is the recommended tool for preparing website images and is available through Colgate’s Adobe Creative Cloud subscription.
- Open your image in Photoshop.
- Select the Crop Tool to adjust the image to the appropriate aspect ratio.
- Go to Image > Image Size to adjust the dimensions. Keep the proportions linked to avoid distortion.
- Select File > Export > Export As.
- Choose JPG or another appropriate supported format, and adjust the quality settings to reduce the file size.
- Export the optimized image and save it to your computer.
Review the exported image before uploading to ensure it remains sharp and clear.
Other Image Editing Options
If you don’t need the full capabilities of Photoshop, these browser-based tools can help with basic image preparation.
- Adobe Express: A simpler option for cropping, resizing, and preparing images. Available through Adobe Creative Cloud.
- Squoosh: A free browser-based tool for compressing images and comparing file sizes and quality.
Avoid uploading sensitive or restricted images to third-party services unless they are approved for that use.
Before Uploading
Check that your image is properly cropped, meets the recommended dimensions, and maintains good visual quality.
When uploading to Drupal, use a descriptive filename and provide appropriate alternative text for images that convey meaningful information.
See Adding Images for instructions on uploading images through the Media Library.