Skip to content

Dumb v3.0.0 API Question - I'm probably not reading the docs right #2380

Discussion options

You must be logged in to vote

Yeah, we've got a breaking change.

The whole out API was clunky and wasn't consistant across sync/async so we did a complete overhaul of the Load APIs to simplify things.

You can now find that information in the image metadata

DecoderOptions options = new() { TargetSize = new( width: config.MaxImageSize, height: config.MaxImageSize ) };
using var img = await Image.LoadAsync(options, input);

// ... now do some some funky stuff... 

await img.SaveAsync(outputStream,  image.Metadata.DecodedImageFormat); 

https://docs.sixlabors.com/articles/imagesharp/imageformats.html#loading-and-saving-specific-image-formats

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Webreaper
Comment options

You must be logged in to vote
1 reply
@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