OutputAs(Action<Image<Rgba32>, Stream>, Func<NormalizedPath, NormalizedPath>) Method
Allows you to specify an alternate output format for the image. For example, you might use this if you want to full specify the encoder and it's properties. This will override the default behavior of outputting the image as the same format.
Namespace
Statiq.Images
Containing Type
MutateImage

Syntax

public MutateImage OutputAs(Action<Image<Rgba32>, Stream> action, Func<NormalizedPath, NormalizedPath> pathModifier = null)

Parameters

Name Type Description
action Action<Image<Rgba32>, Stream> An action that should write the provided image to the provided stream.
pathModifier Func<NormalizedPath, NormalizedPath> Modifies the destination path after applying the operation (for example, to set the extension).

Return Value

Type Description
MutateImage The current module instance.