• We’d like to have RWP overwrite remote images that we are using with a remote media library. We have all the sizes (although in a slightly different format), so we’d like RWP to overwrite the tag even though the source is from another domain (Amazon S3).

    Is there a filter we can use to have RWP overwrite even though the image isn’t part of the default media library?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    Can you do me a customized version of this – Metric Tile Calculator?

    Looking forward to your reply and how I can reach you privately.

    Plugin Author stefanledin

    (@stefanledin)

    Hi!
    Is it the URLs you’d like to overwrite? Is the rwp_edit_generated_element filter to any help?

    https://github.com/stefanledin/responsify-wp#filters-edit-generated-element

    Thread Starter jgadbois

    (@jgadbois)

    Thanks @stefanledin,

    I would like to replace the image tag with the responsive image tag just like it does with a media library image. I can manually do it with that hook if that hook fires for every tag in the content.

    Currently it seems like non-media library tags don’t get touched.

    Plugin Author stefanledin

    (@stefanledin)

    I’m not sure I understand ?? Isn’t the images uploaded through the media library at all? You’re not using S3 as a CDN?
    In that case, I don’t know where to begin actually. RWP needs an attachment ID in order to fetch all the different image sizes and generate the markup.

    Thread Starter jgadbois

    (@jgadbois)

    Ok, thanks that answers my question. There’s no attachment, we’re using the Remote Media Library plugin which is just displaying media from an amazon S3 bucket and inserting using the S3 url (bypassing attachments completely). I’m dynamically creating the various image sizes using Amazon Lambda directly on S3, so was just hoping to use ResponsifyWP to generate the markup only for me.

    Plugin Author stefanledin

    (@stefanledin)

    I see, that’s an interesting workflow! I’m sorry, but that’s a bit to far away from how RWP works.

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