• Resolved odie2

    (@odie2)


    Hello,

    I never enabled “Photon” feature ’cause I prefer store cached images directly from my server.

    But my tiled galleries links to Photon (like https://i1.wp.com/zschocianow.nazwa.pl/wordpress/wp-content/uploads/2015/06/DSCF7455.jpg).

    What more strange for me:
    <img data-orig-file="https://zschocianow.nazwa.pl/wordpress/wp-content/uploads/2015/06/DSCF7455.jpg" data-medium-file="https://zschocianow.nazwa.pl/wordpress/wp-content/uploads/2015/06/DSCF7455-300x225.jpg" data-large-file="https://zschocianow.nazwa.pl/wordpress/wp-content/uploads/2015/06/DSCF7455.jpg" src="https://i2.wp.com/zschocianow.nazwa.pl/wordpress/wp-content/uploads/2015/06/DSCF7455.jpg?resize=796%2C597" [...] />

    I tried with enabling and disabling this feature and whole plugin but nothing changes.

    Example tiled gallery is: https://zschocianow.nazwa.pl/wordpress/logistycy-w-porcie-lotniczym-sa-we-wroclawiu/
    (front-end access – ID: test Password: test)

    Greetings

    P.S. for curiosity when loading images – I am using also [LazyLoad](https://www.ads-software.com/plugins/lazy-load/) plugin, but disabling it also gives no effect.

    https://www.ads-software.com/plugins/jetpack/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    As noted in the module description, Jetpack’s Tiled Galleries indeed use Photon to resize the images on the fly and create the tiled effect.

    If you’d rather not use Photon at all, you’ll need to deactivate the Tiled Gallery module as well.

    Thread Starter odie2

    (@odie2)

    I wanted disable module for custom image size 3 columns grid, but collaborator is opposite :/

    So, I won’t dependent on Photon’s servers. Could I easier remove Photon’s prefix (to include image from my site) without test by PHP on load if server is responding?

    Also, could I filter $content_width or Tiled Galleries depending on my PHP variable defined before get_header() or in main while loop?
    I am defining if include sidebar on certain WP theme file (category, content-gallery, page templates etc.). So with sidebar my $content_width for useable galleries width (there are paddings) should be max 823px, when no – max 1128px.
    It needed for older browser as when 1128px on 823px, JS can’t resize it to fact width, so 305px width (minus padding-right) are overflowed.
    Also I don’t like Tiled Galleries just for it, because the same when narrower full page width (mobile responsive view or old, big monitors).
    Maybe could I do any fallback for disable Tiled Galleries when error?
    At the moment I can’t tell what browser exactly causing problem – because saw it on not my computer, but think that Opera 12.x (note that it’s still popular browser and very good pasing current technologies tests). I address site to school when some public computers are pretty old and only those browsers could work there with all available computer’s resources.

    As always, collaborator-graphic makes me confused ??

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    That’s a lot of questions, let’s try to address them, one at a time ??

    Could I easier remove Photon’s prefix (to include image from my site) without test by PHP on load if server is responding?

    There are 2 work-arounds to disable Photon for your Tiled Galleries:

    Also, could I filter $content_width or Tiled Galleries depending on my PHP variable defined before get_header() or in main while loop?
    I am defining if include sidebar on certain WP theme file (category, content-gallery, page templates etc.). So with sidebar my $content_width for useable galleries width (there are paddings) should be max 823px, when no – max 1128px.
    It needed for older browser as when 1128px on 823px, JS can’t resize it to fact width, so 305px width (minus padding-right) are overflowed.

    $content_width is indeed limited in that regard, and you will experience the same issue with all kinds of embeds, not just galleries. You can read more about it here:
    https://wycks.wordpress.com/2013/02/14/why-the-content_width-wordpress-global-kinda-sucks/

    For now, I’m afraid I can only recommend that you avoid layout issues with CSS, as recommended here:
    https://codex.www.ads-software.com/Content_Width#Adding_Theme_Support

    If you want to help making $content_width better, you can chime in here:
    https://core.trac.www.ads-software.com/ticket/21256

    I don’t like Tiled Galleries just for it, because the same when narrower full page width

    We’ve discussed a possible improvement here, but haven’t agreed on anything yet. Feel free to comment on the GitHub issue with your thoughts on the subject.
    https://github.com/Automattic/jetpack/issues/1516

    Maybe could I do any fallback for disable Tiled Galleries when error?
    At the moment I can’t tell what browser exactly causing problem – because saw it on not my computer, but think that Opera 12.x (note that it’s still popular browser and very good pasing current technologies tests). I address site to school when some public computers are pretty old and only those browsers could work there with all available computer’s resources.

    I’m not sure what error you’re referring to. Could you give me more details about it?

    Thanks!

    Thread Starter odie2

    (@odie2)

    For now, I’m afraid I can only recommend that you avoid layout issues with CSS, as recommended here:
    https://codex.www.ads-software.com/Content_Width#Adding_Theme_Support

    This makes sense ??
    Why I didn’t got so simple idea ??
    Will test when receipt of website after 20th June.
    Thanks!

    There are 2 work-arounds to disable Photon for your Tiled Galleries

    Hmm, but as I saw, when fix “$content_width issue” it will be even good images’ size difference for positive. So I will write then PHP check-for-response function, just for future (no one knows that someday will explose all website servers excluding mine ??

    Uhm, I am still writing too much “guess-yourself-what-I-am-talking-about” as it works in my native Polish language ??

    By

    I don’t like Tiled Galleries just for it, because the same when narrower full page width

    and

    Maybe could I do any fallback for disable Tiled Galleries when error?

    I mean exactly the same on this paragraph, so $content_width overflow/loading larger images than needed.

    Also for

    Maybe could I do any fallback for disable Tiled Galleries when error?

    There doesn’t work JS resizing when page loaded to max useable width, just it stays overflowed (due those 305px with sidebar). But maybe first CSS suggestion will repair it. Will give feedback after 20th.

    I found that ticket about $content_width and realized that my theme builded directly on TwentyFourteen also had trick to change value when conditionals met. Will check it.

    At the moment thanks, maybe I will change my mind on get rid of Tiled Galleries then ^^ (“guess-yourself-what-I-am-talking-about” explanation – maybe I will accept Tiled Galleries like they are).

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Photon working, but disabled’ is closed to new replies.