saucecontrol / PhotoSauce

MagicScaler high-performance, high-quality image processing pipeline for .NET
http://photosauce.net/
MIT License
606 stars 49 forks source link

Overlay/ blur partial part #41

Open durlabhjain opened 4 years ago

durlabhjain commented 4 years ago

Is there a way to apply a partial overlay or blue partial part in the image? I've a unique case where we have to hide/ cut out a specific area in an image. Currently we are using System.Drawing to draw an overlay with partial transparency. However, it'll be great if we can move away from it. May be gaussian blur can be used as a base as long as we can specify x/ y point and radius.

saucecontrol commented 4 years ago

This is possible, but the API isn't suited for that type of operation, so it's not easy to do as of now.

I have plans to introduce a high-performance compositing filter that makes it easier to use MagicScaler to implement things like watermarks. I'll leave this issue open, as I'm interested in collecting use cases around minimal image manipulation to inform that design.

In the meantime, I think most image editing tasks are probably better done in libraries like SkiaSharp or ImageSharp, which are designed more around those scenarios. I'll be working up some integration samples that show how to get the best of MagicScaler while leveraging other libraries for missing functionality.

redwo1f commented 3 years ago

I would like to see watermark ability as well