kirby-3-imgix
kirby-3-imgix copied to clipboard
Why point to the media folder image?
I know this is inspired by the kirby.com KeyCDN plugin where they also point the CDN to the media folder version, but I'm wondering why. The issue I'm having is I can't use ImgIX in a local environment since the url points to a non-existing media asset and turning off the CDN locally also isn't an option because I crop images with the ImgIX api.
When you use the content path of the image (the original file) you don't have this issue (as long as your local content is in sync with the production site). I'm genuinely curious what the rationale here is. Is the idea to be able to do image transforms both on the server and on the CDN?
Hey @philipmarnef! Yes, we’ve also noticed that the only way to make images work locally is disabling the plugin there. If you know a way to make this work in both environments we’d appreciate a pull request. One rational of leaving it as it is, is that disabling the plugin locally allows testing the site without an internet connection. Nonetheless it would be nice to have an option to test imigix locally too.