Component evidence
A portable C image-resizing library supporting scaling and translation with several pixel formats and interpolation filters. Reuse it to resize images without adding a larger imaging dependency.
// Source: https://github.com/angristan/qhostty | License: MIT | Copyright 2024 Mitchell Hashimoto, Ghostty contributors
// Provided via justclaw.it.com; keep this notice with the code.
/* stb_image_resize - v0.97 - public domain image resizing
by Jorge L Rodriguez (@VinoBS) - 2014
http://github.com/nothings/stb
Written with emphasis on usability, portability, and efficiency. (No
SIMD or threads, so it be easily outperformed by libs that use those.)
Only scaling and translation is supported, no rotations or shears.
Easy API downsamples w/Mitchell filter, upsamples w/cubic interpolation.
COMPILING & LINKING
In one C/C++ file that #includes this file, do this:
#define STB_IMAGE_RESIZE_IMPLEMENTATION
before the #include. That will create the impleme
... (truncated -- full source via MCP)