#3 Resize with Reusable Settings
Resources
Resize with Reusable Settings
If you want to specify resize-rules many times, you will usually want the configuration as a bundle to use multiple times. The following examples show how to do this.
This example uses the configuration as is, to create an image according to following specs
Result
![](/oqtane-tutorials/app/Tutorial-Razor/assets/assets/img-resize/basic-logo.png?w=500&h=100&mode=Crop)
![](/oqtane-tutorials/app/Tutorial-Razor/assets/assets/img-resize/basic-banner.png?w=500&h=100&mode=Crop)
This example uses the configuration as is, to create an image according to following specs
Result
![](/oqtane-tutorials/app/Tutorial-Razor/assets/assets/img-resize/basic-logo.png?w=100&h=300&mode=Stretch)
![](/oqtane-tutorials/app/Tutorial-Razor/assets/assets/img-resize/basic-banner.png?w=100&h=300&mode=Stretch)
This example uses a config-bundle, but also specifies additional parameters in Link.Image(...)
.
Result
![](/oqtane-tutorials/app/Tutorial-Razor/assets/assets/img-resize/basic-logo.png?w=100&h=300&quality=100&mode=Max&format=jpg)
![](/oqtane-tutorials/app/Tutorial-Razor/assets/assets/img-resize/basic-logo.png?w=100&h=300&quality=10&mode=Max&format=jpg)
![](/oqtane-tutorials/app/Tutorial-Razor/assets/assets/img-resize/basic-logo.png?w=100&h=300&quality=75&mode=Max&format=jpg)
#3 Resize with Reusable Settings