DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Image processor in DNN 10

 6 Replies
 2 Subscribed to this topic
 40 Subscribed to this forum
Sort:
Author
Messages
Advanced Member
Posts: 249
Advanced Member
2 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!

I have the latest version of DNN 10 and the latest version of Open Content. I want to use an image processor to crop, resize, compress images, etc. Which image processor should I use and how can I best implement it? 

The main thing is that I can use it within Open Content.

Growing Member
Posts: 68
Growing Member
5 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
6 Engaged Reader
Engaged Reader
You are an engaged reader!
2 Avid Reader
Avid Reader
Avid Reader art thou!
2 Most Liked
Most Liked
Congrats, your posts are really liked!

One thing to consider is ImageFlow (server). You can install it in DNN and then use it with querystrings doing transforms and filters and more. The docs are really nice, good examples. Processing is only done once and cached, so subsequent requests are fast.

Here is a simple example. The original image is 8 megapixels (40 MBs, not optimized).

Here it is at 1200 pixels wide
https://rrma2025.accuraty.us/Portals/0/siteContent/projects/french-country-modern/french-country-modern-backyard-pool-landscape-NY7633.jpg?w=1200

Here is the same image manipulated to cropped in to just the chimney.
https://rrma2025.accuraty.us/Portals/0/siteContent/projects/french-country-modern/french-country-modern-backyard-pool-landscape-NY7633.jpg?w=288&h=466&mode=crop&crop=48,30,60,60&cropxunits=100&cropyunits=100

Once its installed in your project and setup in your web.config, it just works. Optionally, you could also have the .NET version (uinsg .NET Standard 2.0) which would also give you a very nice C# API, but for most of our needs, using it embedded in DNN via the URL options gets us 99% of what we need.

New Around Here
Posts: 18
New Around Here

Hé Jeremy,

Thanks for this image processing tip!

How does this Imageflow perform, compared with the already existing DNN Imagehandler? Is it easier, faster or more reliable? I find the steps to install the Imageflow (server) not so easy (or I'm overlooking it).

Also: why would you choose the server edition and not one of the other Imageflow editions?

Thanks,
Keston

Advanced Member
Posts: 249
Advanced Member
2 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!

Thanks Jeremy!!

How do you install it in your project? 

I don't have a custom module I want to use it in DNN and Open Content.

Growing Member
Posts: 37
Growing Member
3 Engaged Reader
Engaged Reader
You are an engaged reader!

I believe when you install 2sxc it is included:
https://docs.2sxc.org/bas...e-resizer/index.html

Growing Member
Posts: 68
Growing Member
5 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
6 Engaged Reader
Engaged Reader
You are an engaged reader!
2 Avid Reader
Avid Reader
Avid Reader art thou!
2 Most Liked
Most Liked
Congrats, your posts are really liked!

It is true that 2sxc installs and configures ImageFlow for you so it can easily be used throughout your DNN instance. However, 2sxc is not necessary, using the server version it should be a straight forward install (files to /bin/folder) and config (manually modify web.config).

The reason for the server version is because it enabled DNN instance wide use of the URL parameters to rework any image (JPG, PNG, etc).

Performance should be better than the DNN built-in image handler and the available features are a very significant improvement. See my post above for a link to the docs; its a really well thought out system. 

I greatly prefer the server edition and URL parameters because it means I can use the tech anywhere in my DNN instance and get the full benefits of both the processing AND caching.

 @willem and  @Keston Pollard - its a manual install. If it seems hard, the only thing I can recommend is spinning up an extra local DNN instance (maybe using nvQuickSite) and installing 2sxc and use the web.config changes and files added to /bin/ImageFlow/ as reference for getting your instance setup.

If there is a stand-alone installer for DNN, I am just not aware of it. It would be nice if it existed.

New Around Here
Posts: 18
New Around Here

Hi Jeremy,

Is this the stand-alone installer you were not aware of?
https://github.com/2sic/dnn-imageflow

Ciao,
Keston

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved