AOEpeople / Aoe_LazyCatalogImages

Magento module to lazy render catalog images
Open Software License 3.0
71 stars 14 forks source link

Make image URL path configurable #13

Open andrewhowdencom opened 9 years ago

andrewhowdencom commented 9 years ago

It would be nice to be able to modify the URL that is output in the template such that you could "drop in" another adapter for the image manipulation.

There are several image manipulation tools that return an optimized image from source image (including both SAAS options such as Imgix, and open source tools such as IIPSrv). Further, support for client hints (such as DPR) is coming, and severs that support these could return an image depending on the useragent (I'm thinking particularly of Chrome/webP).

Such services are advantageous as they're able to do more complex, efficient image processing than Magento as well they reduce some of the responsibility of the Magento stack, and can be developed independently.

I'm thinking the URL should be set in the config XML somewhere, maybe something like

`

https://srv.domain.co/{{filename}}.{{ext}}/width/{{width}}/ ... (And so on)

`

Just a thought! Cheers.

LeeSaferite commented 7 years ago

I know this issue is ancient, but would you be interested in providing a PR implementing this functionality?

andrewhowdencom commented 7 years ago

Sure, but it's time limited. Currently, I'm experimenting with Magento and PRometheus -- I'll fit this around that.