Images make blog posts easier to read, products easier to understand and websites more visually appealing. They can also become one of the biggest causes of slow loading times.
Uploading a high-resolution photo directly from a camera or stock website may add several unnecessary megabytes to a page. Multiply that across a blog, gallery or product category, and mobile visitors may spend more time waiting than reading.
Modern image optimization is not only about reducing file size. It should improve loading performance, accessibility, search visibility and the experience across different screen sizes.
This guide explains a practical workflow for preparing, publishing and testing website images in 2026.
Why Image Optimization Matters
Optimized images can improve several parts of a website:
Faster loading
Smaller files reduce the amount of data visitors need to download, especially on mobile connections.
Better user experience
Pages feel easier to browse when images appear quickly and do not cause the surrounding content to move.
Stronger Core Web Vitals
Images can affect Largest Contentful Paint, Cumulative Layout Shift and, indirectly, Interaction to Next Paint.
Improved accessibility
Descriptive alt text helps people using screen readers understand the purpose and content of meaningful images.
More search visibility
Search engines use filenames, alt text, surrounding copy, structured data and page context to understand images. Well-prepared visual content can appear in Google Images and other discovery experiences, which is an important part of a broader SEO strategy.
Higher conversion potential
Fast, clear product and service images help users evaluate an offer without unnecessary friction.
A Practical Image Optimization Workflow
The most effective approach is to optimize every image before and during publication. Follow these seven steps.
1. Choose Relevant and Legally Usable Images
Start with an image that genuinely supports the page.
A decorative stock image of people pointing at a laptop may fill space, but it rarely adds useful information. Original photographs, screenshots, diagrams, charts and product images can provide more value because they explain something specific.
Use images that are:
- Created by your team
- Purchased from a licensed stock library
- Available through a licence that permits your intended use
- Provided by a client or partner with clear permission
- Properly credited when the licence requires attribution
Do not assume that an image is free to use because it appears in Google Images. Google Images is a discovery tool, not a copyright-free library.
Keep a record of the source, creator, licence and purchase receipt when using third-party assets. This is especially important for commercial websites and campaigns.
2. Resize Images Before Uploading Them
Image dimensions and file size are different.
A website may display an image at 900 pixels wide while the uploaded file is 5,000 pixels wide. The browser can visually shrink the image, but the visitor may still download the oversized original.
Resize the image to match the largest size it will realistically need on the page.
A blog image may only require a width of around 1,200 to 1,600 pixels. A small thumbnail may need a few hundred pixels. A full-width hero image might require a larger version, but it should still be sized intentionally.
Responsive images are also important. Using srcset and sizes allows the browser to select an appropriate version for the user's screen instead of sending the same large file to every device.
This reduces bandwidth and supports faster mobile loading, which is a core part of web design and development.
3. Compress the File
Compression removes unnecessary image data while maintaining an acceptable level of visual quality.
There are two common approaches:
Lossy compression reduces the file more aggressively and may remove some visual information. It works well for most photographs.
Lossless compression preserves the original image data more closely. It is useful when sharp details, text or transparency must remain exact.
The goal is not to create the smallest possible file at any cost. An image that loads instantly but looks like it survived a fax machine is not optimized.
Compare the compressed result at the size users will actually see. Product photos and food images may require higher visual quality than small decorative graphics.
4. Convert Images to AVIF or WebP
JPEG and PNG remain widely supported, but modern formats can often provide better compression.
WebP is a strong general option for photographs, graphics, transparency and animation. AVIF can provide even better compression in many situations, making it useful when file-size savings are a major priority.
MDN recommends WebP and AVIF as modern alternatives to older formats. It notes that AVIF can offer slightly better compression, while WebP has deeper historical browser support.
A sensible format strategy is:
- Use AVIF for detailed photographs and large visual assets when testing shows meaningful savings.
- Use WebP as a reliable modern option across most website images.
- Use SVG for logos, icons and simple illustrations that need to remain sharp at different sizes.
- Use PNG when lossless quality or transparency is required and modern formats are unsuitable.
- Use JPEG as a fallback where necessary.
The picture element can provide AVIF first, WebP second and JPEG as a fallback. The browser then chooses a format it supports.
AVIF vs WebP does not need to become a religious debate. Test both and select the format that provides the best balance of size, quality and browser compatibility.
5. Lazy-Load Only Noncritical Images
Lazy loading delays an image until the user scrolls near it. This can reduce initial page weight and prevent below-the-fold images from competing with critical resources.
It is useful for:
- Images further down a blog post
- Product galleries below the opening section
- Related-article thumbnails
- Large image collections
However, do not lazy-load the main hero or another image likely to become the Largest Contentful Paint element.
Google's web performance guidance specifically warns against lazy-loading images visible in the initial viewport, especially LCP images. Delaying that image can make the page's most important visual appear later.
The main above-the-fold image should normally load eagerly. Developers may also use fetchpriority="high" or preload the correct asset when testing shows that prioritization improves LCP.
Use loading="lazy" for noncritical images, not as an automatic setting applied to everything.
6. Add Descriptive Filenames and Alt Text
Rename generic files before uploading them.
A filename such as dubai-rooftop-restaurant.avif gives search engines a small clue about the subject. A filename such as IMG_8472-final-final2.jpg mostly tells them that someone had a difficult afternoon.
Keep filenames short, descriptive and relevant. Do not force several keywords into one name.
Alt text serves a more important purpose.
It describes a meaningful image for people who cannot see it, including visitors using screen readers. It can also help search engines understand the image in relation to the page.
Good alt text should:
- Describe what the image shows
- Explain relevant context
- Remain concise
- Include a keyword only when it fits naturally
- Avoid phrases such as “image of” unless the format itself matters
For example:
Weak alt text: “food blog image”
Better alt text: “Grilled salmon served with roasted vegetables and lemon”
Decorative images that add no meaningful information may use an empty alt attribute so assistive technologies can skip them.
Alt text is an accessibility requirement first and an SEO opportunity second. Treating it as a place to dump keywords makes the page less useful.
7. Test the Published Page
Optimization is not complete when the image is uploaded.
Test the live page using PageSpeed Insights and review both laboratory data and available field data.
The current Core Web Vitals thresholds are:
- Largest Contentful Paint under 2.5 seconds
- Interaction to Next Paint under 200 milliseconds
- Cumulative Layout Shift under 0.1
Google recommends evaluating these thresholds at the 75th percentile of page visits across mobile and desktop.
Images affect these metrics in different ways.
LCP image optimization focuses on loading the main visible image quickly.
CLS layout shift from images often happens when width and height are missing, leaving the browser unable to reserve the correct space before the file loads.
INP measures responsiveness to user interaction. Images are not usually the only cause of poor INP, but heavy galleries, sliders and image scripts can add processing work and delay interactions.
Check whether PageSpeed Insights identifies oversized files, improperly sized images, poor format choices or a delayed LCP asset.
Image SEO for Google Lens and AI Search
Image discovery increasingly happens beyond a traditional list of blue links.
People can use Google Lens and visual search tools to identify products, places, food, landmarks and other objects. AI-powered search experiences can also combine text and visual information when answering questions.
Visual search optimization begins with the fundamentals:
- Use clear, high-quality original images
- Place images near relevant text
- Write accurate captions and alt text
- Use descriptive filenames
- Provide enough page context
- Make images crawlable
- Use responsive, indexable image URLs
Google recommends placing images near relevant content and using descriptive filenames and alt text to help its systems understand them.
Structured Data for Images
Structured data can provide additional context about the page and its images.
Depending on the content, images may appear within Article, Product, Recipe or other relevant schema types. An ImageObject can also describe details about a specific image.
Useful properties may include:
- The image URL
- Caption
- Creator or credit information
- Copyright notice
- Licence information
- A page explaining how the image can be licensed
Google supports image licensing metadata through structured data or embedded IPTC metadata. The license property is required when structured data is used to qualify for the Licensable badge, while acquireLicensePage can direct users towards licensing information.
Structured data does not guarantee additional visibility. It gives search systems clearer information and must accurately match what users can see on the page.
Tools to Try
Manual optimization works for occasional uploads, but automation becomes important when a website publishes images frequently.
ImageKit and Uploadcare can transform, resize and deliver images through CDN-based workflows.
Imagify and Smush are commonly used WordPress plugins for compression, resizing and format conversion.
A good tool should support:
- Automatic compression
- Responsive resizing
- WebP or AVIF delivery
- Format selection by browser
- CDN distribution
- Bulk optimization
- Backup or restoration options
The tool should fit the website's platform and publishing process. Installing three optimization plugins at once is not extra optimization. It is how plugin arguments begin.
Common Image Optimization Mistakes
Avoid these frequent problems:
- Uploading a full camera-resolution image without resizing it
- Serving one large image to every screen size
- Lazy-loading the hero or LCP image
- Leaving out width and height attributes
- Using generic filenames
- Adding the same keyword-heavy alt text to every image
- Compressing an image until important details become unclear
- Using unlicensed images found through search
- Assuming a plugin removes the need to test the page
Examples for Different Blog Types
Food Blog
Prioritize sharp close-up photography and accurate colour. Use modern formats, meaningful recipe alt text and Recipe structured data where appropriate. Compress carefully so food texture remains appealing.
Travel Blog
Use responsive landscape images, original destination photography and descriptive captions. Avoid loading an entire gallery at full size when the page first opens.
Product Review Blog
Show the product from multiple useful angles. Include close-ups, real-world use and comparison images. Keep the hero image fast, lazy-load the remaining gallery and use relevant Product structured data, especially for an ecommerce website where product imagery directly affects conversions.
Final Image Optimization Checklist
Before publishing, confirm that the image is licensed, resized, compressed and converted to an appropriate format.
Check that responsive versions exist, dimensions are defined and only noncritical images are lazy-loaded.
Add an accurate filename, useful alt text and relevant structured data. Then test the page in PageSpeed Insights.
Image optimization is not one technical adjustment. It is a repeatable workflow that combines speed, accessibility, SEO and visual quality.
Wide Wings helps businesses improve website content, technical performance and search visibility through practical digital strategies.
Contact Wide Wings to build a faster and more discoverable website.
All content belongs to Wide Wings Media.

