Making WordPress.org


Ignore:
Timestamp:
02/10/2015 12:18:47 AM (10 years ago)
Author:
obenland
Message:

WP.org Themes: Use Photon for theme screenshots.

The Theme Directory feeds off of images to illustrate themes, so we will always
have a sizable footprint. In listings, screenshots are retina, so four times
the size they could be, on single they are over 700px wide. No reason not to
try our best to keep it managable though!

Using Photon will cut page weight to about half of what it is now.
We're adjusting the size to only what we need and remove all meta data.

See https://wordpress.slack.com/archives/meta/p1423518323000926

Fixes #845.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/view-templates/theme-single.php

    r1088 r1238  
    1616                <div class="theme-screenshots">
    1717                    <# if ( data.screenshot_url ) { #>
    18                         <div class="screenshot"><img src="{{ data.screenshot_url }}" alt=""/></div>
     18                        <div class="screenshot"><img src="{{ data.screenshot_url }}?w=732&strip=all" alt=""/></div>
    1919                    <# } else { #>
    2020                        <div class="screenshot blank"></div>
Note: See TracChangeset for help on using the changeset viewer.