Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Image Resizer and ASP.NET Core

Tags:

imageresizer

Can ImageResizer be used in an MVC6 (MVC Core) application. We understand that ImageFlow can be (not yet released), but what can we do in the meantime. Many thanks

like image 943
user2981411 Avatar asked Feb 27 '17 01:02

user2981411


People also ask

How to resize Image in ASP net Core?

Resizing an Image can be done in a range of ways. The easiest method is to create a new Bitmap object from the in-memory image. When creating the Bitmap object, you assign the new dimension in the Size parameter. Finally, the resized Bitmap is written to a byte array.


2 Answers

Imageflow.NET Server is the .NET Core equivalent to ImageResizer, but is much faster and produces much smaller image files. See https://github.com/imazen/imageflow-dotnet-server

If you want to do your own middleware, use Imageflow.NET directly. See https://github.com/imazen/imageflow-dotnet

like image 165
Lilith River Avatar answered Oct 19 '22 23:10

Lilith River


I know this question is old as my grandpa but:

You can use this library, this is in my Repo so I don't know should I recommend it or not, but its exactly what you need,

ImageFlow after all these years still in RC mode so I build it myself

https://github.com/keyone2693/ImageResizer.AspNetCore

like image 29
keyone2693 Avatar answered Oct 20 '22 00:10

keyone2693