Themos Piperakis
Themos Piperakis

Reputation: 675

Only basic parameters are honoured in ImageResizer console app

I am using ImageBuilder.Current.Build(imageStream, new ResizeSettings("width=100&height=200&crop=auto&s.grayscale=true")) in a console application, but only width and height attributes are applied, the s.grayscale parameter is ignored. I have installed the SimpleFilters plugin from nuget, and I have added it in the plugin section in app.config. Any idea what I could be missing?

Upvotes: 1

Views: 385

Answers (1)

Lilith River
Lilith River

Reputation: 16468

.NET 4.0 doesn't load .dlls unless there is a static code reference.

Use the code installation method during startup instead of XML:

new SimpleFilters().Install(Config.Current).

Upvotes: 3

Related Questions