(Previously named FriendlyUrls), now part of the Core (since 3.0.12).
Allows images to be resized by specifying a fake folder instead of using the querystring.
For example, image.jpg?maxwidth=100&maxheight=100
would become /resize(100,100)/image.jpg
.
Installation
- Add
<add name="FolderResizeSyntax" />
inside<plugins></plugins>
in Web.config. - Remove
<add name="FriendlyUrls" />
if present. - Remove the old ImageResizer.Plugins.FriendlyUrls.dll reference from the project if preset (it's no longer needed, as it has become part of the core).
This plugin (FolderResizeSyntax plugin) is part of the Essential edition
Where is the plugins section?
The <plugins>
section is located in Web.config, and is nested inside the <resizer>
element, which is nested inside <configuration>
. For examples, see this sample Web.config file.
Where can I find the dll?
We prefer that you install via NuGet, but you can also find the plugin DLL files in the /dlls/release folder of your download.
How do I typically install a plugin via Web.Config?
- In Visual Studio, right click on your project and choose "Add reference". Browse to the plugin DLL and click "OK".
- In the <plugins> section of Web.config, insert <add name="PluginName" />
- Look at the plugin documentation to see what configuration options (if any) are available.