All Projects → Tom94 → stbi-sharp

Tom94 / stbi-sharp

Licence: BSD-3-Clause license
C# wrapper around stb_image.h and qoi.h

Programming Languages

C#
18002 projects
C++
36643 projects - #6 most used programming language
CMake
9771 projects

Projects that are alternatives of or similar to stbi-sharp

sail
The missing small and fast image decoding library for humans (not for machines) ⛵ https://sail.software
Stars: ✭ 206 (+1111.76%)
Mutual labels:  png, jpeg, tga, bmp, qoi
StbSharp
C# port of the famous C framework
Stars: ✭ 62 (+264.71%)
Mutual labels:  png, jpeg, tga, bmp
gfxprim
Open-source modular 2D bitmap graphics library with emphasis on speed and correctness.
Stars: ✭ 32 (+88.24%)
Mutual labels:  png, jpeg, bmp
Imageprocessor
📷 A fluent wrapper around System.Drawing for the processing of image files.
Stars: ✭ 2,452 (+14323.53%)
Mutual labels:  png, jpeg, bmp
Imagesharp
📷 A modern, cross-platform, 2D Graphics library for .NET
Stars: ✭ 5,186 (+30405.88%)
Mutual labels:  png, jpeg, bmp
alfred-imagemin
Alfred workflow - Minify images with Imagemin
Stars: ✭ 29 (+70.59%)
Mutual labels:  png, jpeg
StegX
Steganography (BMP, PNG, WAV, MP3, AVI, FLV)
Stars: ✭ 22 (+29.41%)
Mutual labels:  png, bmp
HEIF
Mac OS X: Convert any image to HEIF/HEIC format
Stars: ✭ 58 (+241.18%)
Mutual labels:  png, jpeg
imagecodecs
Image transformation, compression, and decompression codecs. Forked from https://pypi.org/project/imagecodecs
Stars: ✭ 56 (+229.41%)
Mutual labels:  png, jpeg
Grunt Image
Optimize PNG, JPEG, GIF, SVG images with grunt task.
Stars: ✭ 201 (+1082.35%)
Mutual labels:  png, jpeg
node-pdftocairo
📃 Node.js wrapper for pdftocairo - PDF to PNG/JPEG/TIFF/PDF/PS/EPS/SVG using cairo
Stars: ✭ 17 (+0%)
Mutual labels:  png, jpeg
img
A python library to display images in the terminal
Stars: ✭ 55 (+223.53%)
Mutual labels:  png, jpeg
Density Converter
A multi platform image density converting tool converting single or batches of images to Android, iOS, Windows or CSS specific formats and density versions given the source scale factor or width/height in dp. It has a graphical and command line interface and supports many image types (svg, psd, 9-patch, etc.) aswell as some lossless compressors like pngcrush.
Stars: ✭ 222 (+1205.88%)
Mutual labels:  png, jpeg
ICNS2ICO
ICNS2ICO lets you easily convert icons from the Apple's ICNS format to the Windows ICO format.
Stars: ✭ 17 (+0%)
Mutual labels:  png, bmp
video thumbnail
This plugin generates thumbnail from video file or URL. It returns image in memory or writes into a file. It offers rich options to control the image format, resolution and quality. Supports iOS and Android.
Stars: ✭ 159 (+835.29%)
Mutual labels:  png, jpeg
Gulp Image
Optimize PNG, JPEG, GIF, SVG images with gulp task.
Stars: ✭ 213 (+1152.94%)
Mutual labels:  png, jpeg
jimp-compact
✏️ Lightweight version of Jimp -- An image processing library written entirely in JavaScript for Node.js
Stars: ✭ 55 (+223.53%)
Mutual labels:  png, jpeg
Azpainter
Full color painting software for Unix-like systems for illustration drawing. This is un-official little fixed repository for package maintainers of image editor AzPainter (based on "mlib" toolkit). Official repository - http://azsky2.html.xdomain.jp/arc/download.html
Stars: ✭ 179 (+952.94%)
Mutual labels:  png, jpeg
Pappl
PAPPL - Printer Application Framework
Stars: ✭ 192 (+1029.41%)
Mutual labels:  png, jpeg
dom-to-image-more
Generates an image from a DOM node using HTML5 canvas
Stars: ✭ 231 (+1258.82%)
Mutual labels:  png, jpeg

StbiSharp

A C# wrapper around the single-header image-loading libraries stb_image.h and qoi.h. It supports JPEG, PNG, QOI, BMP, GIF, HDR, PIC, PNM, PSD, and TGA (for some formats only a subset of features; consult stb_image.h for details).

Usage

Grab StbiSharp from nuget, then load an image as follows:

public void doSomethingWithImage()
{
    using (var stream = File.OpenRead("some-image.jpg"))
    using (var memoryStream = new MemoryStream())
    {
        stream.CopyTo(memoryStream);
        StbiImage image = Stbi.LoadFromMemory(memoryStream, 4);

        // Use image.Width, image.Height,
        // image.NumChannels, and image.Data.
    }
}

If the encoded image is directly available in memory, no file stream needs to be used.

Building

You are only required to build StbiSharp if you plan to develop it further or fix bugs. In case this applies to you, thank you for helping out! :)

Rather than explaining in text how to build StbiSharp, I invite you to check our GitHub build-and-publish workflow. It contains the minimal set of instructions to build the native STBI lib via a C++ compiler on Ubuntu, macOS, and Windows, as well as the minimal set of instructions for building the C# wrapper using dotnet.

License

StbiSharp is available under the BSD 3-clause license, which you can find in the LICENSE.txt file. TL;DR you can do almost whatever you want as long as you include the original copyright and license notice in any copy of the software and the source code.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].