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 imagesharp magick-net skiasharp uwp winui wpf
Last synced: 28 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
- License: unlicense
- Created: 2024-11-04T12:43:03.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-01-10T08:07:42.000Z (about 1 month ago)
- Last Synced: 2025-01-10T08:41:03.508Z (about 1 month ago)
- Topics: convert, dotnet, emgucv, images, imagesharp, magick-net, skiasharp, uwp, winui, wpf
- Language: C#
- Homepage: https://www.mortara.org
- Size: 15.9 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 it covers images of:
- SkiaSharp (https://github.com/mono/SkiaSharp)
- EMGU.CV (https://github.com/emgucv/emgucv)
- Magick.NET (https://github.com/dlemstra/Magick.NET)
- ImageSharp (https://sixlabors.com/products/imagesharp/)
- ImageFlow dotNet (https://github.com/imazen/imageflow-dotnet)
- 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.
Conversions starting with AsXXXX() do not create a new copy.# Contribution
Any kinf of contribution is highly welcomed and appreciated!
# License
Do whatever you want with it!
# Contact
https://www.mortara.org
https://talk.mls20.de/@Patrick