Hi @dynamicdigitalsolutions,
Unfortunately, I can’t access the provided URL.
Best regards,
Anton
Hi Anton,
Appologies could you try again?
@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
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
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
@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
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
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
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