Install libsdl2-image-dev by entering the following commands in the terminal:
sudo apt update sudo apt install libsdl2-image-dev
Description:
Image loading library for Simple DirectMedia Layer 2, development files
This is a simple library to load images of various formats as SDL surfaces. It supports the following formats: BMP, GIF, JPEG, LBM, PCX, PNG, PNM, TGA, TIFF, WEBP, XCF, XPM, XV. . This package contains the development files.
Homepage: https://www.libsdl.org/projects/SDL_image/
Version: 2.0.3+dfsg1-1
Section: universe/libdevel