What CDN are you using with W3TC, and is it configured to leave the original image on your server?
We have are own CDN where the images are stored and its set up with W3TC.
But now when I think of it it does work on our development site and that one does not use a CDN.So that must be it. Is this only available on the payed version?
Wow, you built your own CDN?
At any rate, here’s how EWWW normally works with W3TC’s CDN functions (whether you pay or not):
If there is still a local version of the image (which there usually is with W3TC), then EWWW optimizes the local copy of the image. This will also involve all the resized versions for that image.
Once it has completed optimizing the image and resizes, it updates the metadata, which should usually trigger W3TC’s CDN uploader.
That said, I’ve only ever tested it with W3TC’s S3 integration, as I don’t have my own CDN, or accounts with any of the other push-mode CDNs that they support.
If you really do have your own CDN servers, there are other solutions that can run right on your CDN servers which might work better for you: https://github.com/nosilver4u/ewwwio-silo and if you need help with that one — https://ewww.io/contact-us/