diesdasdigital / kirby-3-imgix

🖼 imgix plugin for Kirby 3
MIT License
20 stars 4 forks source link

Exclude panel images from using Imgix #5

Open Moucky opened 2 years ago

Moucky commented 2 years ago

Just wondering how difficult it would be to provide an option to exclude the panel images from using Imgix. Initially I thought this may be possible by including "/media/pages/" in the base URL for the web folder source but this does not work.

I think it would be great to be able to limit the web folder source to only include certain images. For example if I was to include "/media" in the base URL I would get all images from Kirby (panel and uploaded images on the frontend) but not images in the assets folder.

timkinali commented 1 year ago

I would like to see that too! Not only panel images, but any image on the frontend too.

For example my client have downloadable super hi res press kit images that I'd like to serve via Kirby instead, because: 1) it eats up the Imgix bandwidth limit quickly 2) Imgix has a size limit we would want to bypass for these images which always should be the original file without any processing.