blob: 68c4c225880f541e54ed99860e6ba0a1a6dd1f27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// For STBI we only need PNG because the only use case we have right now
// is the Kitty Graphics protocol which only supports PNG as a format
// besides raw RGB/RGBA buffers.
#define STBI_ONLY_PNG
// We don't want to support super large images.
#define STBI_MAX_DIMENSIONS 131072
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
#define STB_IMAGE_RESIZE_IMPLEMENTATION
#include <stb_image_resize.h>
|