Skip to content

Default configuration #292

Answered by JimBobSquarePants
Toso82 asked this question in Q&A
Oct 24, 2022 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

Yeah. You can set them in ImageSharpMiddlewareOptions.OnParseCommands

services.AddImageSharp(options =>
{
    options.OnParseCommandsAsync = context => {
        context.Commands.Add(nameof(BackgroundColorWebProcessor.Color), nameof(Color.White));
        context.Commands.Add(nameof(FormatWebProcessor.Format), "png");
        return Task.CompletedTask;
    };                
}) 

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@Toso82
Comment options

Answer selected by Toso82
Comment options

You must be logged in to vote
5 replies
@JimBobSquarePants
Comment options

@Toso82
Comment options

@JimBobSquarePants
Comment options

@Toso82
Comment options

@JimBobSquarePants
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants