• Resolved owenpiccirillo

    (@owenpiccirillo)


    Hello,

    I would like to pull the square version of the instagram photo, and not other size like for example a landscape one.

    Can’t find it in the settings?

    Maybe its something I need to edit in the plugins code files?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Tigran Nazaryan

    (@progmastery)

    hi @owenpiccirillo,

    unfortunately it is not possible, Instagram API does not return square images anymore. We can’t do anything with that.

    Thread Starter owenpiccirillo

    (@owenpiccirillo)

    yes you can,

    $(window).load(function() {
            $(".wdi_img").each(function() {
                var imgSRC = $(this).attr("src");
                imgSRC = imgSRC.replace("e35/", "e35/c257.0.565.565/");
                $(this).load(function() {
                    $(this).closest(".wdi_photo_img").show();
                }).attr("src",imgSRC);
            });
        });
    Plugin Contributor Tigran Nazaryan

    (@progmastery)

    Wow! Good hack!

    There is a field for custom javascript available in plugin options.
    Custom ‘wdi_feed_loaded ‘ JS event triggered after feed images retrieved and sources written in DOM.
    You may paste the code there. This event fires also after pagination requests.

    However, please note that instagram may change URLs of square images, which are hardcoded in your script.

    Hi Tigran and Owen, tried to paste the JS… nothing changed! Still getting the normal proportions.

    The reason I wanted to get the square ones is because I realised that the plugin doesn’t pull the thumbs but a quite hi-res image… 800×640!!! I have a stream of 10, and this slows down the loading of about 2 seconds, when the images are rendered at 120px…. Any solutions about this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Pull square version of image to show’ is closed to new replies.