Mecanik / cloudflare-image-resizing

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

Added external image support #17

Closed meneer-code closed 2 years ago

meneer-code commented 2 years ago

The original plugin does not support external images from sources with different root urls

Mecanik commented 2 years ago

explode() is an expensive operation for every image, I'd rather use a simple strpos() with CF_IMAGE_RESIZING_SITE_URL?

meneer-code commented 2 years ago

@Mecanik done at https://github.com/Mecanik/cloudflare-image-resizing/pull/17/commits/2853e58dd8a348efafccd216ee7e01cfaa8e8602