用于捆绑效果的ImageResizer自定义URL [英] ImageResizer custom urls for bundled effects

查看:105
本文介绍了用于捆绑效果的ImageResizer自定义URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在尝试使用ImageResizer进行一些操作,该操作应该非常简单,但是找不到任何文档。

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

我们希望将效果捆绑到较短的网址请求。
例如,我们不要求做guid.jpg吗?maxwidth = 100& maxheight = 100& mode = crop& anchor = middlecenter& rotate = 90,而是要求guid_thumb.jpg或guid.jpg? bundlemode = 1。然后,将bundlemode转换为所需的效果。

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".

请告知。

感谢您的时间和帮助!

推荐答案

这篇关于用于捆绑效果的ImageResizer自定义URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆