ampproject / ampproject/amp-toolbox

Optimizer: generate `sizes` attribute as part of image optimization.

Open
#1,136 0 comments 0 reactions 0 assignees View on GitHub
enhancement toolbox-optimizer
Dominant language
HTML
Stars
459
Forks
242
PR merge metrics
No merged PRs in 30d

Description

Currently, image optimization does not generate a sizes attribute. We should investigate whether there's a good approach to generate a `sizes` attribute as part of image optimization.

//cc @patrickkettner

Contributor guide

Open the contributing guide

Research direction

Start by tracing the image optimization entry point in AMP Toolbox and determine how responsive image attributes are currently handled. Investigate a suitable way to generate a sizes attribute; the work is complete when image optimization reliably emits an appropriate sizes attribute and the behavior is covered by the relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.