Mecanik / cloudflare-image-resizing

CloudFlare Image Resizing plugin for WordPress.
MIT License
66 stars 13 forks source link

Plugin rewriting Yoast schema image references #39

Closed mdotk closed 8 months ago

mdotk commented 1 year ago

Yoast outputs json_ld Schema like:

url":"https://www.domains.com/wp-content/uploads/...

But the plugin is rewriting it to:

url":"/cdn-cgi/image/width=1920,height=1080,fit=crop,quality=80,format=auto,onerror=redirect,metadata=none/wp-content/uploads/...

How can I stop this? I tried changing the different hook numbers/levels in the plugin, but nothing worked.

GaneshRamDK commented 1 year ago

Highly recommend using the CF Worker instead: https://github.com/Mecanik/cloudflare-image-resizing-worker

Mecanik commented 8 months ago

This is because Yoast is most likely using a function that my plugin is hooking into as well. Frankly I do not see a solution for this because I cannot alter core functionality of wordpress. Please try the worker option.