• Resolved vauneen

    (@vauneen)


    Hi,
    we need to ask Jetpack to always return the largest version of our image (artist’s website)
    so we dont want Jetpack to determine for us, what size to serve.
    (we basically want Jetpack just as a CDN, and not an image accelerator)

    Is there a hook we could maybe use to override the call throughout?
    Maybe to highjack this before sending it:
    Jetpack_PostImages::get_image($post_id, $thumbnail_size)
    and change the value of the $thumbnail_size?

    Is that possible?

    Please let us know,
    Thanks so much.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter vauneen

    (@vauneen)

    some more explanation:
    we have disabled WordPress’ own ‘big_image_size_threshold’
    so without Jetpack, WP serves the full image every time.

    But if we switch Jetpack on the the max image size returned is 800px.
    we get the following added to img tags
    sizes="(max-width: 800px) 100vw, 800px"

    whereas without Jetpack that max-width is the actual image size.

    hope this makes sense.

    Thread Starter vauneen

    (@vauneen)

    figured it out!
    its this hook ‘jetpack_photon_skip_for_url’

    ignore my question ??

    • This reply was modified 4 years, 7 months ago by vauneen.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Return full version every time’ is closed to new replies.