WordPress.org

Ready to get started?Download WordPress

Forums

Instagram Slider Widget
[resolved] Save local file as thumbnail size (6 posts)

  1. Ryan
    Member
    Posted 8 months ago #

    Is it possible to have the local image that's downloaded from instagram saved as a thumbnail instead of the full size picture?
    When displaying as a thumbnail it is actually using the full size picture (and is resized using CSS) which wastes a lot of bandwidth and is bad for page load times.

    https://wordpress.org/plugins/instagram-slider-widget/

  2. goferit
    Member
    Posted 8 months ago #

    +1 for this.

  3. jetonr
    Member
    Plugin Author

    Posted 8 months ago #

    It can be done using timthumb but then this should be optional only for the thumbnail version!

  4. mathewlewis
    Member
    Posted 7 months ago #

    Agreed.

    Use of the 640x640 image for thumbnails has a performance hit to page loading. I only use thumbnails, so having the extra overhead is undesirable.

    I modified line 323 of instagram_slider.php to use "thumbnail" instead of "standard_resolution". The three options are documented on instagram.com/developer/endpoints/media/#get_media.

    Instead of a 640x640 image, it is now using a 150x150 image. Instead of a 100-500kb file, I am seeing 10-20kb in size. Page loads are now much more efficient.

  5. jetonr
    Member
    Plugin Author

    Posted 7 months ago #

    Great @mathewlewis will sort this out asap!

  6. jetonr
    Member
    Plugin Author

    Posted 5 months ago #

    This doesn't work for this plugin. It is doable if I plan to extend the plugin to a more complex plugin but for now I don't think that is happening!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.