stb

stb single-file public domain libraries for C/C++ (by nothings)

Stb Alternatives

Similar projects and alternatives to stb

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better stb alternative or higher similarity.

Suggest an alternative to stb

Reviews and mentions

Posts with mentions or reviews of stb. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-10-01.
  • PortableGL: An MIT licensed implementation of OpenGL 3.x-ish in clean C
    In a nutshell, PortableGL is an implementation of OpenGL 3.x core in clean C99 as a single header library (in the style of the stb libraries).
  • πmenu: a pie menu for UNIX X11
    One slight note is that you might like to consider stb_image (https://github.com/nothings/stb) rather than imlib2 as a dependency for the image loading so no additional packages outside base are required?
  • How to display an image with WIN32 api and C ?
    What about the stb_image library?
  • libjpeg / boost::jpeg / openjpeg
    Not familiar with yocto so can't help there, but I'm a big fan of stb_image_write unless you need complex functionality. Single header, permissive license.
  • Difficulty running old OpenGL libs on Modern Windows
    reddit.com/r/opengl | 2021-08-18
    IIRC they used it for basic image loading. Nowaday's you'd probably want to sub in something like stb_image.
  • Supersample CRGB array
    reddit.com/r/FastLED | 2021-08-12
    Sub-pixel positioned anti-aliased lines and dots are simple. Extending that idea to drawing any shape is far more fiddly. I found this excellent rasteriser and this article which explains how it works. PlutoVG wraps that rasteriser in an easy-to-use API. I'm very happy with the results.
  • Scripting in C with functions as in Python: strings, files, list, dict, type, print, input etc.
  • What is your own favorite C project?
    In terms of other people's projects: stb, microui, and nanovg come to mind
  • Stb_truetype library heap buffer overflows (many CVEs, no CVEs yet)
    A 16k stars project, used in, I can imagine game engines, UI, Android/iOS/embedded. Used in another 30k stars project and 11k from even Google (also possibly not fixed). OpenCV 55k stars seems to be also affected (new branch only). Attack vector through malicious font. Buy me a beer if you will get bounty on it and also initial fuzzing person https://github.com/nothings/stb/issues/618
  • I need to add text to an image using C
    Well, you mentioned that you're a beginner, and this is quite a difficult project to tackle, but it's doable. Definitely try the stb libraries, notably stb_image for loading images, stb_truetype for rasterizing text, and stb_image_write for writing images. Again, it's a difficult project for a beginner, but it's not impossible.
  • What formula does stb_image.h use to convert rgb to grayscale?
    I would like to convert some colors to grayscale automatically, but I would like to know how exactly it works so I can troubleshoot the images. In the read image function, I read the image as 1(grayscale), even though the image is RGB. The formula outlined here Y = 0.299R + 0.587×G + 0.114B appears to be consistent with the output. But in the code I can't find the numbers.
  • Decoding GIF with C?
    Have you tried stb_image from https://github.com/nothings/stb ?
    if you are looking for code then stb is handy https://github.com/nothings/stb
  • Creating a Custom QUI Toolkit from Scratch
    My library uses nanovg, a canvas API on top of OpenGL, written in C and stb_truetype for font rasterization.
  • I need help opening an OpenGl project in Visual Studio
    reddit.com/r/opengl | 2021-06-26
    GLM is a maths library, it's not OpenGL (though it does style itself after GLSL's mathsy bits). stb_image is from this wonderful project. Etc etc.

Stats

Basic stb repo stats
53
16,896
9.1
8 days ago

nothings/stb is an open source project licensed under GNU General Public License v3.0 or later which is an OSI approved license.

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
Find remote jobs at our new job board 99remotejobs.com.
There are 37 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.