• Resolved guystarbuck

    (@guystarbuck)


    I’m pulling photos from Smugmug. The aspect ratio seems to have changed. Photos are now squeezed to fit the photo container. Did something change or a conflict with my theme?
    This is new behavior since the latest plugin update.
    Appreciate your help. Thanks!

    PS. I’ve installed the latest update; v2.01.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    Is Photonic the only thing you updated? Or did you update something else as well? The reason I ask is because upon resizing your screen the layout seems to get sorted out (I don’t see that happening on the demo page), which leads me to think that another plugin / theme update is preventing an event from triggering. Can you confirm?

    If you have updated something else as well, the fix typically is to add a line via a child theme as Photonic cannot necessarily circumvent what happens due to another script. You will need this right before the </body> tag in your child theme’s footer.php:

    <script type='text/javascript'>
    jQuery(window).load(function() {
    	photonicJustifiedGridLayout(true);
    });
    </script>
    Thread Starter guystarbuck

    (@guystarbuck)

    Proxy Cache Purge is the only other plugin that I updated. Nothing that I think would affect photos.
    I see what you mean about resizing the browser. That’s interesting.
    The server is using Varnish. I purged the cache just for good measure but that didn’t make any difference.
    Could your script be added with a footer php plugin injection?

    Plugin Author Sayontan Sinha

    (@sayontan)

    Oh… you seem to have JetPack Photon’s CDN turned on! That is your culprit.

    Basically JetPack uses its own CDN instead of using SmugMug’s, which is weird. This causes all sorts of unpredictable photo displays since it tries to overlay its own sizing algorithms etc.

    Thread Starter guystarbuck

    (@guystarbuck)

    It was on. I turned it off but I don’t see any difference.

    Plugin Author Sayontan Sinha

    (@sayontan)

    That’s weird. I was almost certain that was the issue. In any case, to answer your question about changing the footer via a plugin, my guess is yes, you should be able to do it. The only catch here is how the plugin is performing the injection – via JS or via PHP. If you have a plugin that does this give it a try and I can help you out if you face issues.

    Thread Starter guystarbuck

    (@guystarbuck)

    Thanks. That script seemed to do the trick. Something else is definitely trying to control that layout.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘smugmug aspect ratio’ is closed to new replies.