Skip to content

How to resize and compress in one go #613

Answered by dlemstra
perason asked this question in General
Discussion options

You must be logged in to vote

My advise would be to call image.Write(yourOutputStream); and then call optimizer.Compress(yourOutputStream) to compress the stream. The optimizer should always be the last step. And you could do new ImageMagick.MagickImage(formfile instead of reading it from a memory stream.

Replies: 1 comment 5 replies

Comment options

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

@dlemstra
Comment options

@perason
Comment options

@dlemstra
Comment options

@perason
Comment options

Answer selected by perason
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants