-
Today I do this
Is there any way to optimize this and do something like Edit As a note, I was thinking to first use the I mean, why to compress a bigger image than necessary, still, performance-wise, would it perform better and what would the end result be when it comes to size/quality? Edit 2 I did a test, where I first compressed the image and then resized it, though it take both longer time and the size is bigger. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
My advise would be to call |
Beta Was this translation helpful? Give feedback.
My advise would be to call
image.Write(yourOutputStream);
and then calloptimizer.Compress(yourOutputStream)
to compress the stream. The optimizer should always be the last step. And you could donew ImageMagick.MagickImage(formfile
instead of reading it from a memory stream.