• Resolved dynamicdigitalsolutions

    (@dynamicdigitalsolutions)


    Hi,

    Loving the app and going to be using for saving storage by offloading images to cloudflare, done this on our of our stores and product images have came back but unfortuantly the logo and header and other theme blocks have not came over, and still have the image URL as the URL, is there a way of creating redirects etc or what ever is needed to prevent this?

    If you have a look at my website here you will see what images worked etc and which ones didnt, we are using betheme on this one.

    • This topic was modified 8 months ago by James Huff.
    • This topic was modified 8 months ago by James Huff. Reason: redundant link removed

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Anton Vanyukov

    (@vanyukov)

    Hi @dynamicdigitalsolutions,

    Unfortunately, I can’t access the provided URL.

    Best regards,
    Anton

    Thread Starter dynamicdigitalsolutions

    (@dynamicdigitalsolutions)

    Hi Anton,

    Appologies could you try again?

    Plugin Author Anton Vanyukov

    (@vanyukov)

    @dynamicdigitalsolutions,

    Could you please try enabling the “parse page for images” option. Also, I’ve noticed that some of your images have a hash appended to the URL, for example, 2024/03/DDS-1.png#57169. Such images will, most likely, fail. Are you able to remove this hash?

    Best regards,
    Anton

    Thread Starter dynamicdigitalsolutions

    (@dynamicdigitalsolutions)

    Hi Anton,

    I am unsure on how to remove the hash from the image URLS, and

    Parse page for images is already enabled

    Kind Regards
    Sean

    Thread Starter dynamicdigitalsolutions

    (@dynamicdigitalsolutions)

    Would it be possible to add a woocommerce product image offload only? so theme options stay locally hosted but all product images move over as woo product images offloading has worked completely fine? and surely that would be a safe way for many users to be able to offload images if the theme contents stayed?

    Kind Regards

    Sean

    Plugin Author Anton Vanyukov

    (@vanyukov)

    @dynamicdigitalsolutions,

    I’m assuming you’re trying to use the “full offload”? With full offload, the image must be in the default WordPress format, otherwise the plugin is not able to map those images to Cloudflare entities. And because there’s no image to fallback to from the full offload, you’re getting the 404 errors.

    Unfortunately, Cloudflare Images URLs are quite unique, compared to S3, for example, which makes detecting images a problem. That’s why this is an experimental option.

    If I had to guess, I would say that the hash comes from some media library plugin that allows you to replace images, keeping the same file name, and the hash is there to fix browser caching issues.

    Would it be possible to add a woocommerce product image offload only

    Yeah, you don’t have to offload everything – you can pick and choose from the media library.

    Best regards,
    Anton

    Thread Starter dynamicdigitalsolutions

    (@dynamicdigitalsolutions)

    Hi Anton,

    Yes I am using full offload, wanted to see if it worked correctly, Looking at my media library, its not going to be very easy for me to restore the theme images to the store, as its all pretty much merged into rest of the images, and woocommerce product image only option in the app would be amazing!

    Kind Regards

    Sean

    Plugin Author Anton Vanyukov

    (@vanyukov)

    The plugin already support this. You can add your custom logic into the cf_images_media_post_id filter and return null for images that should not be offloaded.

    apply_filters( 'cf_images_media_post_id', $attachment_id )

    Best regards,
    Anton

    Plugin Author Anton Vanyukov

    (@vanyukov)

    I’ll mark this as resolved. Please feel free to re-open or create a new thread if you have any other questions.

    Best regards,
    Anton

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Image Redirect for Themes’ is closed to new replies.