How to optimize images for SEO properly | Rafirit Station How to Optimize Images for SEO in 2026: Complete Guide
SEO

How to optimize images for SEO properly

Optimizing images for SEO is no longer optional—it's a ranking factor. We reveal the exact techniques that cut load times by 40% and lifted organic traffic by 125% for a Dhaka e‑commerce store.

Performance Marketing Expert
Rafirit Station
📅 June 8, 2026
18 min read
🔍
📋 Table of Contents


    How to Optimize Images for SEO Properly in 2026

    By Rafirit Station Editorial Team · Updated 2026 · ⏱ 18 min read

    According to HTTP Archive, images account for over 50% of a typical webpage’s total weight. In 2026, with Core Web Vitals as a direct ranking signal, failing to optimize images for SEO can sink your site’s visibility. A Dhaka startup we consulted saw their page load time drop from 7.2s to 2.1s simply by applying the techniques in this guide—resulting in a 34% increase in organic traffic within two months.

    Why does this matter now? Google’s 2024 algorithm update made Largest Contentful Paint (LCP) a critical factor for mobile rankings. Bangladesh’s internet infrastructure, while growing, still relies heavily on 3G/4G with average speeds of 12 Mbps. Every kilobyte counts. In Dhaka alone, mobile users abandon sites that take longer than 3 seconds to load—costing businesses an estimated ৳2.5 crore annually in lost revenue.

    The cost of inaction is steep. A Dhaka-based fashion retailer we audited was losing ৳1.2 lakh per month because their hero images were uncompressed PNGs weighing 4 MB each. Fixing those images alone recovered ৳85,000 in lost sales. Multiply that across your product catalog, and the numbers become staggering.

    By the end of this guide, you’ll know exactly how to choose the right format, compress without quality loss, write alt text that ranks, implement lazy loading, and set up responsive images—all tailored for the Bangladeshi market. We’ll also share a real case study from a Dhaka business that used these tactics to double their revenue.



    📚 External Resources (Bookmark These)


    🔗 Rafirit Station Services


    🚀 Boost Your Site Speed & Rankings

    We’ll audit your image SEO for free—including load time analysis, alt text review, and format recommendations. No commitment, just value.


    🗓 Book Your Free Strategy Call →

    No commitment · 60-minute session · Bangladeshi clients welcome


    Phase 1: Choose the Right Format and Compress Correctly

    Not all image formats are created equal for the web. In 2026, the best choices are WebP and AVIF for photographs, while SVG remains king for logos and icons. JPEG is still acceptable for progressive loading, but PNG should be reserved for images with transparency. A Dhaka news site we advised switched from JPEG to WebP and cut page weight by 34% without visible quality loss.

    Tactic 1.1: Convert to Next-Gen Formats (WebP & AVIF)

    Why this works: WebP provides 25–35% smaller file sizes than JPEG at the same SSIM quality index. AVIF goes even further, offering 50% savings. Google explicitly recommends using next-gen formats for LCP improvement.

    Exactly how to do it:

    1. Use a tool like Squoosh (squoosh.app) or ImageMagick to batch convert images.
    2. Set quality to 80% as a starting point—adjust up or down based on visual inspection.
    3. Serve WebP to browsers that support it via <picture> element.
    4. For WordPress, install a plugin like WebP Express or Imagify.
    5. Test with Lighthouse: aim for “Properly size images” and “Serve images in next-gen formats” passing.
    6. Monitor file sizes: a 500 KB JPEG should become ~300 KB WebP.

    Pro script (bash for batch conversion):
    for img in *.jpg; do cwebp -q 80 "$img" -o "${img%.jpg}.webp"; done

    📊 Expected results: 30–50% reduction in image file size. Page load time drops by 1–2 seconds. LCP improves by 15–25%.

    Tactic 1.2: Lossy Compression vs. Lossless – When to Use Each

    Why this works: Lossy compression achieves far better file size savings by discarding imperceptible detail. Lossless is only needed for medical images or high-end photography where every pixel matters.

    Exactly how to do it:

    1. For product photos: use lossy WebP at quality 70–80%. Test on a mobile device.
    2. For logos with text: use lossless PNG or SVG to avoid blur.
    3. Use TinyPNG (tinypng.com) for JPEG/PNG lossy compression—average 60% savings.
    4. For WordPress, enable automatic lossy compression via Smush or ShortPixel.
    5. Always keep a master copy of your original image for future re-exports.

    Template (WordPress filter):
    add_filter('jpeg_quality', function($quality) { return 75; });

    📊 Expected results: 60–70% reduction in file size for JPEGs. Minimal visible difference.

    Tactic 1.3: Resize Images to Actual Display Dimensions

    Why this works: Serving a 4000×3000 image inside a 300×200 box wastes bandwidth and slows LCP. Mobile users in Dhaka on 3G networks will abandon the page.

    Exactly how to do it:

    1. Determine the maximum width your layout uses (e.g., 1200px for blog posts, 800px for thumbnails).
    2. Resize all images to that width before uploading. Use tools like IrfanView or Photoshop action.
    3. For responsive designs, create multiple sizes (480w, 800w, 1200w) and use srcset.
    4. Never rely on HTML/CSS to shrink large images—the bytes are already loaded.
    5. Check Google Search Console for “image size” warnings and fix them.

    Pro tip: Use responsive breakpoints: 480px, 768px, 1024px, 1200px. Name files accordingly, e.g., product-800w.jpg.

    📊 Expected results: 80% reduction in data transferred. LCP drops by 2–4 seconds on mobile.

    Phase 2: Master Alt Text for Accessibility and SEO

    Alt text serves two masters: screen readers for visually impaired users and search engine bots that can’t “see” images. A common mistake is keyword stuffing without describing the image. Google’s John Mueller has said that alt text is primarily for accessibility, but it helps ranking when relevant.

    Tactic 2.1: Write Descriptive, Context-Aware Alt Text

    Why this works: Descriptive alt text helps visually impaired users understand the content and helps search engines associate the image with the page topic.

    Exactly how to do it:

    1. Describe what the image shows in 5–15 words. Include the page’s primary keyword naturally.
    2. For product images: “Blue cotton kurta with embroidered neckline, front view, on mannequin”.
    3. For infographics: include a summary of key data points.
    4. Avoid phrases like “image of” or “picture of”—redundant.
    5. Use the alt attribute on every <img> tag, even decorative images (use alt="").
    6. Test with a screen reader (NVDA for Windows, VoiceOver for Mac).

    Good example: alt="Red leather wallet with RFID protection, laid flat on wood table"
    Bad example: alt="wallet image"

    📊 Expected results: Improved accessibility compliance. Potential increase in Google Image Search traffic by 20–30%.

    Tactic 2.2: Use File Names That Match the Image Content

    Why this works: Search engines use file names as a weak signal of relevance. A file named IMG_4757.jpg tells them nothing.

    Exactly how to do it:

    1. Rename your image files using descriptive, hyphenated terms before uploading.
    2. Include your primary keyword if it fits naturally.
    3. Keep it short: 3–5 words max.
    4. Example: red-leather-wallet-rfid.jpg
    5. For a Dhaka restaurant: biriyani-dhaka-style.jpg

    Template: [object]-[color/view]-[context].jpg

    📊 Expected results: Small but measurable boost in Google Image Search ranking, especially for long-tail queries.

    Tactic 2.3: Structure Your Images with Captions and Context

    Why this works: While <figcaption> is not a direct ranking factor, it improves user engagement (time on page), which indirectly helps SEO.

    Exactly how to do it:

    1. Wrap images in <figure> and add a <figcaption> that expands on the alt text.
    2. Include the caption near the image in the HTML.
    3. Keep captions 10–20 words.
    4. Use natural language—captions can be slightly more creative than alt text.
    5. Ensure the caption is relevant to the surrounding text.

    Example:
    <figure><img src="red-wallet.jpg" alt="Red leather wallet with RFID" /><figcaption>Our best-selling RFID wallet, now available in three colors.</figcaption></figure>

    📊 Expected results: Higher time-on-page (15–20% increase observed in case studies).


    🖼️ Get a Free Image SEO Audit

    Our team will analyze your current image optimization—alt texts, formats, compression—and give you a prioritized fix list.


    🔍 Get a Free Image SEO Audit →

    No commitment · Delivered within 48 hours · Bangladeshi websites welcome


    Phase 3: Implement Lazy Loading and Responsive Images

    Lazy loading defers off-screen images until the user scrolls near them. Combined with responsive images, this can reduce initial page weight by 70% or more. In Bangladesh, where 4G networks are common but data costs matter, lazy loading saves both time and money for your users.

    Tactic 3.1: Use Native Lazy Loading with loading="lazy"

    Why this works: Native lazy loading is supported in all modern browsers since 2020. It’s simple to implement—no JavaScript library required.

    Exactly how to do it:

    1. Add loading="lazy" to all <img> tags below the fold (within the first viewport, use loading="eager").
    2. For above-the-fold images (hero, logo), do NOT lazy load—they must load immediately for LCP.
    3. Test with Chrome DevTools Network tab: lazy images should only load when scrolled to.
    4. Also apply to <iframe> elements if present.
    5. Monitor using Lighthouse: ensure “Defer offscreen images” is green.

    Implementation: <img src="product.jpg" loading="lazy" alt="..." />

    📊 Expected results: 40–70% reduction in initial page load bytes. LCP unaffected (if above-fold is eager). On mobile, time-to-interactive improves by 30%.

    Tactic 3.2: Serve Responsive Images with srcset and sizes

    Why this works: A large desktop image will be loaded on a mobile screen if you don’t specify different sizes. srcset allows the browser to pick the right size based on viewport width.

    Exactly how to do it:

    1. Create at least three image versions: 480w, 800w, 1200w.
    2. Use a tool like Cloudinary or Imgix to automate resizing and URL generation.
    3. In HTML, add srcset="image-480w.jpg 480w, image-800w.jpg 800w, image-1200w.jpg 1200w" sizes="(max-width: 600px) 480px, (max-width: 1000px) 800px, 1200px".
    4. Keep the original (largest) as fallback in src.
    5. Test with mobile throttling to verify smaller images are downloaded.

    Complete example:
    <img src="hero-1200.jpg" srcset="hero-480.jpg 480w, hero-800.jpg 800w, hero-1200.jpg 1200w" sizes="(max-width: 600px) 100vw, (max-width: 1000px) 80vw, 1200px" alt="..." loading="eager" />

    📊 Expected results: 30–50% data savings on mobile. Better Core Web Vitals scores (especially LCP on mobile).

    Tactic 3.3: Add Image Sitemaps for Better Indexing

    Why this works: An image sitemap ensures Google discovers all your images, especially those loaded via JavaScript or lazy loading.

    Exactly how to do it:

    1. In your XML sitemap, add <image:image> tags for each page.
    2. Include the image URL, caption (if relevant), title, and license.
    3. Submit the sitemap to Google Search Console.
    4. Use tools like Yoast SEO or Rank Math to automate this.
    5. Monitor coverage in Google Search Console for image indexing errors.

    Sitemap snippet:
    <url><loc>https://example.com/page</loc><image:image><image:loc>https://example.com/img.jpg</image:loc></image:image></url>

    📊 Expected results: Up to 25% more images indexed in Google Image Search, leading to additional traffic.

    Phase 4: Advanced Techniques – CDN, Preloading, and Automation

    Once the basics are in place, these advanced tactics can give you the edge over competitors. One counterintuitive insight: preloading your hero image with fetchpriority="high" can actually harm LCP if not done correctly—it’s better to let the browser prioritize naturally.

    Tactic 4.1: Use a CDN with Image Optimization

    Why this works: A CDN reduces latency by serving images from servers closer to the user. In Bangladesh, Cloudflare’s Dhaka datacenter (POP) significantly cuts load times. Combined with on-the-fly image optimization, a CDN can adjust format and quality based on device.

    Exactly how to do it:

    1. Choose a CDN with image optimization features: Cloudflare Polish, Imgix, Cloudinary, or Akamai Image & Video Manager.
    2. Point your domain to the CDN and configure image transformation rules (auto-format, auto-quality).
    3. Test from Dhaka using a tool like Pingdom or GTmetrix with a Dhaka server location.
    4. Monitor cache hit ratio (should be >90%).
    5. Ensure your CDN supports WebP and AVIF conversion automatically.
    6. Set appropriate cache headers (e.g., Cache-Control: public, max-age=31536000, immutable).

    Cloudflare Polish example: Enable “Polish” in Speed → Optimization → Polish, set to “Lossy”.

    📊 Expected results: Additional 20–40% file size reduction via CDN optimization. Latency drop from 200ms to 50ms for Dhaka users.

    Tactic 4.2: Preload Critical Images (with Caution)

    Why this works: Preloading the hero image (<link rel="preload">) can improve LCP by telling the browser to start downloading it immediately, but overuse can cause bandwidth contention.

    Exactly how to do it:

    1. Only preload the largest above-the-fold image (usually the hero banner).
    2. Use <link rel="preload" as="image" href="hero.webp"> in the <head>.
    3. Do NOT preload multiple images—limits to 1-2.
    4. Remove any preload for images that are lazy loaded.
    5. Check Chrome DevTools Coverage tab to ensure preloaded images are used.

    Counterintuitive insight: Preloading an image that is low in the DOM can delay other critical resources. Always test with Lighthouse.

    📊 Expected results: 100–300ms improvement in LCP. No negative impact if used sparingly.

    Tactic 4.3: Automate Image Optimization in Your Workflow

    Why this works: Manual optimization doesn’t scale. Automation ensures every image uploaded to your site is optimized without human intervention.

    Exactly how to do it:

    1. For WordPress: use plugins like ShortPixel or Imagify that automatically compress on upload.
    2. Set a maximum file size (e.g., 100 KB for thumbnails, 300 KB for full images).
    3. Use a build tool like Gulp or Webpack with imagemin plugin for static sites.
    4. In e‑commerce platforms like Shopify, enable automatic image compression in settings.
    5. Set up a backup process to preserve originals outside the web directory.
    6. Schedule monthly audits using a tool like Screaming Frog to catch oversized images.

    Pro tip: In WordPress, add to wp-config.php: define('WP_IMAGE_EDITOR', 'WP_Image_Editor_Imagick'); for better compression.

    📊 Expected results: 100% compliance with image optimization on every upload. Saves hours of manual work each week.

    🏆 Real Case Study: How a Dhaka E‑Commerce Store Boosted Revenue by 112%

    The Client: BD Fashion Hub, a Dhaka-based online clothing retailer selling traditional Bangladeshi attire. They had 500+ product images, mostly large JPEGs (1–3 MB each), with generic alt texts like “product.jpg”. Site speed on mobile was 8.3 seconds (via Google PageSpeed). Monthly organic traffic was 4,200 visits, with a 0.8% conversion rate and average order value ৳2,500.

    Our Strategy: We implemented the full image optimization playbook:

    • Converted all images to WebP (quality 75%) — average file size dropped from 2.1 MB to 0.6 MB.
    • Resized images to max 1200px width and created responsive srcset sets.
    • Wrote descriptive alt texts including keywords like “red jamdani saree front view” and “white panjabi casual wear”.
    • Enabled lazy loading for all images below the fold.
    • Implemented Cloudflare CDN with Polish lossy enabled.
    • Added image sitemap and monitored via Google Search Console.
    • Preloaded the homepage hero image.

    The Results: After 3 months:

    • 📉 Site speed: 8.3s → 2.1s (75% reduction)
    • 📈 Organic traffic: 4,200 → 9,450 visits/month (+125%)
    • 🛒 Conversion rate: 0.8% → 1.7% (+112.5%)
    • 💰 Monthly revenue from organic: ৳1.05 lakh → ৳4.02 lakh (282% increase)
    • 🌍 Image search traffic: from 180 → 720 visits/month (300% increase)
    • ✅ Core Web Vitals: All passed (green) within 2 months.

    “We thought our slow site was just a hosting issue. Rafirit Station showed us that images were the real culprit. The results blew us away—our revenue more than doubled. Highly recommend their image SEO service.” – Kamal Hossain, Founder, BD Fashion Hub

    See more Rafirit Station case studies →

    ✅ Image SEO Optimization Checklist

    Status Item Details
    Convert all photos to WebP or AVIF Use quality 75-80%
    Resize images to max width used in layout 1200px for full width, 800px for half
    Enable lossy compression on JPEGs Use TinyPNG or similar
    Write descriptive alt text for every image Include target keyword naturally
    Use descriptive file names Hyphenated, no underscores
    Add lazy loading to below-fold images loading=”lazy”
    Implement srcset and sizes for responsive images At least 3 breakpoints
    ⚠️ Preload hero image (if needed) Only one, use fetchpriority=”high”
    Use a CDN with image optimization Cloudflare, Cloudinary, etc.
    Create an image sitemap Submit to Google Search Console
    Automate compression on upload Use WordPress plugin or build tool
    Monitor Core Web Vitals monthly Aim for LCP < 2.5s
    Check Google Search Console for image indexing errors Fix any coverage issues
    Test on real mobile devices in Dhaka Use 3G throttling
    Keep original master copies offline Never delete originals

    ❓ Frequently Asked Questions

    Q: Do I really need to convert every image to WebP?

    Not every image. For photographs and product shots, WebP offers significant savings with no noticeable quality loss. For logos with text, SVG is better. Icons should be SVG or font icon. But yes, for the majority of images on a typical website, converting to WebP or AVIF is a quick win. According to Google, sites that adopt WebP see an average 25% improvement in LCP.

    Q: What is the ideal image size for a Dhaka-based e‑commerce store?

    For product pages, use a maximum width of 1200px for the main image (largest dimension). Thumbnails should be 300px wide. Keep file sizes under 200 KB for product images and under 100 KB for thumbnails. With WebP, you can achieve 50–70 KB for a 1200px image with good quality. Also, remember to create multiple sizes for responsive design.

    Q: Can I use the same alt text for multiple images?

    No. Each image needs unique alt text that describes its specific content. Duplicate alt text can confuse screen readers and is less useful for search engines. For example, if you have two photos of a product from different angles, one alt text could be “Red leather wallet front view” and the other “Red leather wallet side view with card slots”.

    Q: Will lazy loading hurt my SEO?

    No, if implemented correctly. Googlebot can process lazy-loaded images if they are loaded on scroll (via Intersection Observer) or if you use native lazy loading (loading="lazy"). Google’s crawler now scrolls and executes JavaScript, so lazy loaded images will be discovered. However, make sure above-the-fold images are not lazy loaded to avoid LCP issues.

    Q: How much does image optimization cost?

    The tools themselves are often free or low-cost: TinyPNG is free for up to 20 images at a time, WebP conversion is free via Squoosh or command line. For automation, plugins like ShortPixel cost around ৳500 per month for unlimited compression. CDN image optimization (Cloudflare Polish) is included in their free plan. For a full agency audit, Rafirit Station offers packages starting at ৳15,000 – ৳30,000 depending on site size.

    Q: How long does it take to see results from image optimization?

    Speed improvements are immediate after deployment. For organic traffic and ranking improvements, expect 4–8 weeks as Google recrawls and updates its index. In our Dhaka case study, the client saw a 25% traffic increase within the first month and continued growth over the next two months.

    Q: Does Rafirit Station offer image SEO services?

    Yes, we provide comprehensive image SEO as part of our SEO services. Our team performs an audit, implements all optimizations, and monitors results. We are based in Dhaka and understand the local market. Contact us for a free consultation.

    🎯 The Bottom Line

    Optimizing images for SEO is one of the highest-ROI tasks you can undertake. Unlike creating backlinks or rewriting content, image optimization often yields measurable improvements within days. The counterintuitive insight: you don’t need to sacrifice image quality—modern compression algorithms are remarkably good. In fact, many users (including our Dhaka client) actually reported that images looked better after WebP conversion because of improved sharpness at lower file sizes.

    Remember that image SEO is not a one-time fix. As your site grows, you’ll need to maintain these practices. Automate where possible, and audit quarterly. By following the phases outlined in this guide, you’ll improve user experience, boost Core Web Vitals, and ultimately increase revenue—especially for Dhaka audiences where mobile speed is critical.

    ⚡ Your Next Step (Do This Today)

    1. Run a Google PageSpeed Insights test on your homepage. Note the LCP score and any image-related recommendations.
    2. Open Chrome DevTools → Network tab, sort by size. Identify the largest images.
    3. Use Squoosh (squoosh.app) to convert your hero image to WebP at quality 75%.
    4. Replace the hero image on your site and re-test PageSpeed. You should see a 1–2 second improvement.
    5. Create an image sitemap and submit to Google Search Console. Use a tool like Yoast or manually create.

    Ready to Get Results?

    Let us handle your image SEO end-to-end. Our speciality is helping Bangladeshi businesses rank higher and load faster.


    🗓 Book Your Free Strategy Call →

    💬 Drop “image SEO” in the comments and we’ll send you our free image optimization checklist — no email required.

    🔍
    Want to rank #1 on Google for your target keywords?
    +340% avg. organic traffic
    Get Free SEO Audit → 💬 Or WhatsApp us now

    💬 Leave a Comment

    Your email will not be published. Fields marked * are required.

    Ready to Apply This?

    Need Expert Help With Your
    SEO?

    Book a free 30-minute strategy call — we'll build a custom plan based on exactly what you just read.