• Resolved iangeek

    (@iangeek)


    Am I right in thinking that following the last Insta-tweak to their API they only let you pull the huge image?

    Although I’m fine resizing this, the fact that I’m typically scaling it down by 90% is causing some niggles with the page speed and overhead, even with caching.

    Is there any way of incorporating something like Photon support (if enabled) for future versions? For now I’ve gone with the following which seems to work (if a bit hacky), but had to modify the core to do it:

    $img_src = esc_url( $item['thumbnail'] );
    
    $img_src = apply_filters( 'jetpack_photon_url', $img_src, 'resize=250,250', 'http' )

    https://www.ads-software.com/plugins/wp-instagram-widget/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Option to scale…’ is closed to new replies.