Skip to content

Modern Image Formats: Sub-sizes image didn't add original image extension #1560

@mukeshpanchal27

Description

@mukeshpanchal27

Bug Description

While i test something i found that the uploaded image didn't add original image extension( -jpeg ) in the sub-sizes but it added in full size image.

<img 
    fetchpriority="high" 
    decoding="async" 
    width="1024" 
    height="576" 
    src="http://localhost:8888/wp-content/uploads/2024/09/car-1024x576.avif" 
    alt="" 
    class="wp-image-57" 
    srcset=
    "
        http://localhost:8888/wp-content/uploads/2024/09/car-1024x576.avif 1024w, 
        http://localhost:8888/wp-content/uploads/2024/09/car-300x169.avif 300w, 
        http://localhost:8888/wp-content/uploads/2024/09/car-768x432.avif 768w, 
        http://localhost:8888/wp-content/uploads/2024/09/car-jpeg.avif 1080w
    "
    sizes="(max-width: 1024px) 100vw, 1024px"
>

The issue happen for both(WebP/AVIF) mime type.

Steps to reproduce

  1. Install and activate Modern Image Formats plugin.
  2. Upload JPEG image
  3. See frontend.

Screenshots

Screenshot 2024-09-24 at 12 10 04 PM

Metadata

Metadata

Labels

[Plugin] Modern Image FormatsIssues for the Modern Image Formats plugin (formerly WebP Uploads)[Type] BugAn existing feature is broken

Type

No type

Projects

Status

Not Started/Backlog 📆

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions