Skip to content

Picture element: Full size image is missing in PICTURE > SOURCE srcset #1417

Description

@mukeshpanchal27

Bug Description

As discussed #1408 (comment), the full size image is missing in picture element source srcset.

Steps to reproduce

  1. Activate the Modern Image Formats plugin and enable picture support from the Media Settings screen.
  2. Add an image block
  3. Preview the page in the front end, Check the PICTURE > SOURCE srcset.

IMG srcset:

http://localhost:8888/wp-content/uploads/2024/07/car-1024x576.jpeg 1024w,
http://localhost:8888/wp-content/uploads/2024/07/car-300x169.jpeg 300w,
http://localhost:8888/wp-content/uploads/2024/07/car-768x432.jpeg 768w,
http://localhost:8888/wp-content/uploads/2024/07/car.jpeg 1080w

Picture > source srcset:

http://localhost:8888/wp-content/uploads/2024/07/car-1024x576.jpeg 1024w,
http://localhost:8888/wp-content/uploads/2024/07/car-300x169.jpeg 300w,
http://localhost:8888/wp-content/uploads/2024/07/car-768x432.jpeg 768w

Screenshots

Screenshot 2024-07-30 at 4 38 57 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
No fields configured for issues without a type.

Projects

Status
Done 😃

Relationships

None yet

Development

No branches or pull requests

Issue actions