IMG_LoadTIF_IO(3)
π IMG_LoadTIF_IO(3) β the "yes bestie I already know it's a TIFF" loader
okay so welcome to the SDL_image3 FUNCTIONS corner of the manual, this one's about IMG_LoadTIF_IO, and it is genuinely so straightforward it's kind of iconic β¨
πΈ NAME πΈ
IMG_LoadTIF_IO β load a TIFF image directly. no detective work, no vibes-based guessing, just straight in π
β¨ SYNOPSIS β¨
#include <SDL3_image/SDL_image.h>
SDL_Surface * IMG_LoadTIF_IO(SDL_IOStream *src);
like, that's it. that's the whole signature. she's compact π
π¦ DESCRIPTION π¦
so here's the tea: if you know you definitely have a TIFF image, you can call this function and it will skip SDL_image's file format detection routines entirely. no sniffing, no "hmm what could this be", no main-character indecision β she just goes πββοΈπ¨
but ngl, generally it's better to use the abstract interfaces. that's the recommended path, fr fr. also β and this is important, don't miss it β there is only an SDL_IOStream interface available here. no filename version, no _RW situation, just the one. iykyk π
π FUNCTION PARAMETERS π
srcβ anSDL_IOStreamto load image data from. that's the source of the pixels, the whole entire vibe check π
π₯ RETURN VALUE π₯
returns an SDL_Surface, or NULL on error. so if you get NULL back, something went wrong β check your error, bestie, don't just stare at it π
β AVAILABILITY β
this function is available since SDL_image 3.0.0. she's been here a minute π«Ά
π SEE ALSO π
the whole friend group, all the direct-loaders, all _IO, all slay:
IMG_LoadAVIF_IO(3)IMG_LoadBMP_IO(3)IMG_LoadCUR_IO(3)IMG_LoadGIF_IO(3)IMG_LoadICO_IO(3)IMG_LoadJPG_IO(3)IMG_LoadJXL_IO(3)IMG_LoadLBM_IO(3)IMG_LoadPCX_IO(3)IMG_LoadPNG_IO(3)IMG_LoadPNM_IO(3)IMG_LoadQOI_IO(3)IMG_LoadSVG_IO(3)IMG_LoadTGA_IO(3)IMG_LoadWEBP_IO(3)IMG_LoadXCF_IO(3)IMG_LoadXPM_IO(3)IMG_LoadXV_IO(3)
(and yes, IMG_LoadTIF_IO is not in her own SEE ALSO list. she's humble like that π)
lowkey reminder: format detection is skipped here, so if it turns out not to be a TIFF you're on your own β no cap, that's just what the page says π
mwah π this page came to you courtesy of the SDL_image crew, version SDL_image 3.4.4, and yes that version string is doing double duty as the date slot in the footer, we respect the hustle π go load some TIFFs, you've got this π§ββοΈ
π¦ where this page comes from
- ubuntu stonking: libsdl3-image-doc 3.4.4+ds-2 Β· zlib/libpng AND HPND-like AND zlib-like-permissive
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms