2sic / dnn-imageflow

ImageFlow image resizer http module for Dnn
Other
4 stars 0 forks source link
2sxc dnn dnncms dotnetnuke image-resize image-resizer imageflow

dnn-imageflow

Imageflow image processing and optimizing http module for DNN

It use Imazen Imageflow.NET wrapper for Imageflow, the image processing library for servers.

It is upgrade for very successful dnn-imazen-imageresizer commonly used with 2sxc revolutionizing content management module on DNN. Older brother is based on classic Imageresizer while Imageflow is next-generation product.

It is similar to oqt-imageflow for Oqtane and Imageflow.NET Server a super-fast image server for ASP.NET Core.

Installation

  1. Please install DNN 9.6.1+.
  2. Download latest ToSic.Imageflow.Dnn_NN.NN.NN_Install.zip from dnn-imageflow releases .
  3. Install ToSic.Imageflow.Dnn_NN.NN.NN_Install.zip dnn extension as usually.
  4. More DNN info...

Note

  1. As part of dnn extension installation it will automatically unregister older ImageResizer http module in web.config.

Usage

Simply store files with images in DNN website (as any other, normal, unrestricted image, eg /Portals/0/Images/img.jpg).

In image link use Querystring API for image manipulation, like is:

Examples

<img src="https://github.com/2sic/dnn-imageflow/raw/main/img.jpg?w=50" />
<img src="https://github.com/2sic/dnn-imageflow/raw/main/img.jpg?width=100&amp;height=100&amp;mode=max&amp;scale=down" />
<img src="https://github.com/2sic/dnn-imageflow/raw/main/img.jpg?w=300&amp;h=300&amp;mode=crop&amp;scale=both" />
<img src="https://github.com/2sic/dnn-imageflow/raw/main/img.jpg?format=webp" />
<img src="https://github.com/2sic/dnn-imageflow/raw/main/img.jpg?s.grayscale=true" />
<img src="https://github.com/2sic/dnn-imageflow/raw/main/img.jpg?s.grayscale=ry" />
<img src="https://github.com/2sic/dnn-imageflow/raw/main/img.jpg?s.grayscale=bt709" />
<img src="https://github.com/2sic/dnn-imageflow/raw/main/img.jpg?s.grayscale=flat" />
<img src="https://github.com/2sic/dnn-imageflow/raw/main/img.jpg?s.sepia=true" />
<img src="https://github.com/2sic/dnn-imageflow/raw/main/img.jpg?s.invert=true" />
<img src="https://github.com/2sic/dnn-imageflow/raw/main/img.jpg?s.alpha=0.25" />
<img src="https://github.com/2sic/dnn-imageflow/raw/main/img.jpg?s.contrast=-0.80" />
<img src="https://github.com/2sic/dnn-imageflow/raw/main/img.jpg?s.brightness=0.5" />
<img src="https://github.com/2sic/dnn-imageflow/raw/main/img.jpg?s.saturation=-0.5" />

Caching

Roadmap

Setup DEV ENV

  1. Git clone this repo.
  2. In VS open ToSic.Imageflow.Dnn solution.
  3. Set Release configuration in configuration manager.
  4. Build Solution
  5. If all is OK, in \InstallPackages you should find DNN Library extension packages (to install Imageflow on other DNN installations):
    1. ToSic.Imageflow.Dnn_NN.NN.NN_Install.zip
    2. ToSic.Imageflow.Dnn_NN.NN.NN_Symbols.zip

References

Included dependencies (.NETStandard 2.0/.NET Framework v4.7.2)

Places with version number