ImageResizer custom urls for bundled effects

五迷三道 提交于 2019-12-11 17:57:29

问题


We're looking to do something with ImageResizer that should be very easy but couldn't find any documentation on it.

We'd like to bundle effects into a shorter url request. For example, instead of doing something like guid.jpg?maxwidth=100&maxheight=100&mode=crop&anchor=middlecenter&rotate=90 we'd like to just request guid_thumb.jpg or guid.jpg?bundlemode=1. Then we'd translate bundlemode into the desired effects.

That way, if we want to add other effects to the bundle, we can just modify the "bundle code".

Please advise.

Thanks for your time and help!


回答1:


These are called Presets and are provided by the Presets plugin.



来源:https://stackoverflow.com/questions/16287881/imageresizer-custom-urls-for-bundled-effects

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!