Redth / ResizetizerNT

Add SVG's and PNG's to your shared Xamarin Project
MIT License
318 stars 31 forks source link

Missing possibility to parameterize antialiasing used in image compression #92

Open thisisthekap opened 2 years ago

thisisthekap commented 2 years ago

Some images need specific settings when compressing (like circles which may appear pixelated).

thisisthekap commented 2 years ago

Antialiasing may be enabled when creating the SkiaSharp SKPaint instance:

https://github.com/Redth/ResizetizerNT/blob/319fc3f085021dea4e836c0072adc754b0436d66/Resizetizer.NT/SkiaSharpTools.cs#L32-L35

Can we think of any drawbacks (expect for resize performance) when enabling antialiasing by default?

If enabling it by default is a viable option, I'd be happy to do a PR for it.