Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mortara/image-converter-extensions
A collection of extensions to convert between different image formats
https://github.com/mortara/image-converter-extensions
convert dotnet emgucv images magick-net skiasharp uwp winui wpf
Last synced: 2 days ago
JSON representation
A collection of extensions to convert between different image formats
- Host: GitHub
- URL: https://github.com/mortara/image-converter-extensions
- Owner: mortara
- Created: 2024-11-04T12:43:03.000Z (12 days ago)
- Default Branch: main
- Last Pushed: 2024-11-12T16:51:17.000Z (4 days ago)
- Last Synced: 2024-11-12T17:40:59.646Z (4 days ago)
- Topics: convert, dotnet, emgucv, images, magick-net, skiasharp, uwp, winui, wpf
- Language: C#
- Homepage: https://www.mortara.org
- Size: 15.8 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Image converter extensions
A collection of (currently very quick & dirty) extension-methods to convert images between different library formats.Currently is covers images of:
- SkiaSharp (https://github.com/mono/SkiaSharp)
- EMGU.CV (https://github.com/emgucv/emgucv)
- Magick.NET (https://github.com/dlemstra/Magick.NET)
- Microsoft.UI.Xaml.Media.Imaging.BitmapImage
- System.Windows.Media.Imaging
- System.DrawingMost conversion use a intermediate step over a System.Drawing.Image. My goal ist to get rid
of all these unnecessary steps and make direct conversions if possible.Some of the supported conversions:
- SkiaSharp.SKImage <-> ImageMagick.IMagickImage
- SkiaSharp.SKImage <-> Emgu.CV.Image
- SkiaSharp.SKImage -> System.Drawing.Bitmap (with option to specify pixelformat)- SkiaSharp.SKBitmap <-> ImageMagick.IMagickImage
- SkiaSharp.SKBitmap <-> Emgu.CV.Image
- SkiaSharp.SKBitmap -> System.Drawing.Bitmap (with option to specify pixelformat)- System.Drawing.Icon -> SkiaSharp.SKImage
More extensions are about to come.
# Usage
I have no intentions to publish this as a nuget package or something like that. The best way to use it,
is probably to just copy and paste the parts you really need into your own project.All conversions that start with ToXXXX() (e.g. ToSKImage()) are meant to create a new copy of the image.
Later i want to also add AsXXXX() function that do not create a new copy.# License
Do whatever you want with it!
# Contact
https://www.mortara.org
https://talk.mls20.de/@Patrick