Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter SpabRice

    (@spabrice)

    Still waiting for an answer on this.
    Was my issue clear?

    Hello … You have to hack the plugin for now to get square images. Or you can wait for an update. Let me know if you want to hack the plugin for now so I can guide you. I’ll add this feature in the future update… 🙂

    • This reply was modified 7 years, 7 months ago by Omer Hussain.
    Thread Starter SpabRice

    (@spabrice)

    thanks for your answer.
    Yes I would like to hack the plugin. Can you guide me?
    Thanks

    Just replace the line#434 in simple-instagram.php and change it:

    $content .= '<img src="' . $feed->images->standard_resolution->url . '" alt="">';

    to:

    $content .= '<img src="' . $feed->images->thumbnail->url . '" alt="">';

    Let me know how it goes… 🙂

    and don’t forget to rate the plugin

    Thread Starter SpabRice

    (@spabrice)

    Hello,

    thanks for your answer.
    this will only provide 150x150px which is too small for my needs.
    I tried low_resolution->url but it again adds white borders. This probably is a instagram thing, but I don’t understand why instagram are adding white border to the image output. This makes no sense to me. If I put them on a dark background it will look awefull.

    Yes! unfortunately instagram only gives these three options to the users

    1. thumbnail = 150 X 150 (It does crop the image equal in width and height)
    2. low_resolution = 320 X 320 (It doesn’t crop the portrait image)
    3. standard_resolution = 640 X 640 (It doesn’t crop the portrait image)

    You can set the width and height for thumbnail through CSS but be aware making it bigger will distort the image quality.

    Let me know if you need any help 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Get square images’ is closed to new replies.