Automattic / Automattic/jetpack

Generate Photon URLs that provide the dimensions of the intermediate sizes available on the server

Open
#920 4 comments 0 reactions 0 assignees View on GitHub
[Feature] Photon Enhancement
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

When fetching images from a site, Photon gets the full-sized images, as it has no way of knowing what intermediate sizes (generated by WordPress) are available on a site. If Jetpack could generate Photon URLs that provide the dimensions of the intermediate sizes available on the server, Photon could use that information to download the appropriate one when generating the resized image. For example, Jetpack could pull the thumbnail sizes as an array and have Photon use the one that's larger than the requested size.

Solving this could improve Photon's performeance, especially on sites with many images, such as for posts with large Tiled Galleries.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.