how to generate thumbnails from a image file using uno

how to generate thumbnails from a image file using uno?

Hi ghostgzt,

there is ImageTools module that allows you to do that in JavaScript. Does that help or do you explicitly need to use Uno?

Uldis wrote:

Hi ghostgzt,

there is ImageTools module that allows you to do that in JavaScript. Does that help or do you explicitly need to use Uno?

Hi Uldis,

This is what I want to do!

Taking a look at takePicture(w,h) function implementation in Fuse.Camera, it seems you could use Fuse.ImageTools in Uno too.

There’s a bit of other building blocks around this, but the line of particular interest looks something like this:

ImageTools.ImageTools.Resize(img, _width, _height, ResizeMode.KeepAspect);