3

I'm using ImageResizer (imageresizing.net) and I'm able to create resized images:

public void DoMagic(string original)
{
    string newImage = Server.MapPath("~/Images/test.png");
    ResizeSettings setting = new ResizeSettings("width=100&height=200");
    ImageBuilder.Current.Build(original, newImage,  setting);
}

I cannot figure out how to use grayscale or brightness:

s.grayscale=true|y|ry|ntsc|bt709|flat (true, ntsc, and y produce identical results)

s.brightness= -1..1

1 Answer 1

2

I just forgot to install the SimpleFilters plugin. After that just followed this and then this

ImageBuilder.Current.Build(original, newImage, new ResizeSettings("width=100&height=200&crop=auto&s.grayscale=true"));
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.