{"id":13534823,"url":"https://github.com/libsdl-org/SDL_image","last_synced_at":"2025-04-02T00:31:05.711Z","repository":{"id":36966781,"uuid":"331517360","full_name":"libsdl-org/SDL_image","owner":"libsdl-org","description":"Image decoding for many popular formats for Simple Directmedia Layer.","archived":false,"fork":false,"pushed_at":"2024-10-16T01:26:21.000Z","size":97101,"stargazers_count":565,"open_issues_count":25,"forks_count":184,"subscribers_count":23,"default_branch":"main","last_synced_at":"2024-10-17T14:15:40.109Z","etag":null,"topics":["sdl-image","sdl2"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/libsdl-org.png","metadata":{"files":{"readme":"README.txt","changelog":"CHANGES.txt","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-21T04:48:26.000Z","updated_at":"2024-10-17T13:08:01.000Z","dependencies_parsed_at":"2023-10-17T01:42:39.813Z","dependency_job_id":"0b0d2efa-9d9f-40fd-b14c-f5a32c71ce2a","html_url":"https://github.com/libsdl-org/SDL_image","commit_stats":{"total_commits":1262,"total_committers":50,"mean_commits":25.24,"dds":0.4445324881141046,"last_synced_commit":"c37c316cce394eb11f0396b2feed9785525c76af"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libsdl-org%2FSDL_image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libsdl-org%2FSDL_image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libsdl-org%2FSDL_image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libsdl-org%2FSDL_image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libsdl-org","download_url":"https://codeload.github.com/libsdl-org/SDL_image/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246734975,"owners_count":20825211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["sdl-image","sdl2"],"created_at":"2024-08-01T08:00:43.349Z","updated_at":"2025-04-02T00:31:00.674Z","avatar_url":"https://github.com/libsdl-org.png","language":"C","funding_links":[],"categories":["Libraries"],"sub_categories":[],"readme":"\r\nSDL_image 3.0\r\n\r\nThe latest version of this library is available from GitHub:\r\nhttps://github.com/libsdl-org/SDL_image/releases\r\n\r\nThis is a simple library to load images of various formats as SDL surfaces.\r\nIt can load BMP, GIF, JPEG, LBM, PCX, PNG, PNM (PPM/PGM/PBM), QOI, TGA, XCF, XPM, and simple SVG format images. It can also load AVIF, JPEG-XL, TIFF, and WebP images, depending on build options (see the note below for details.)\r\n\r\nAPI:\r\n#include \u003cSDL3_image/SDL_image.h\u003e\r\n\r\n\tSDL_Surface *IMG_Load(const char *file);\r\nor\r\n\tSDL_Surface *IMG_Load_IO(SDL_IOStream *src, SDL_bool closeio);\r\nor\r\n\tSDL_Surface *IMG_LoadTyped_IO(SDL_IOStream *src, SDL_bool closeio, char *type);\r\n\r\nwhere type is a string specifying the format (i.e. \"PNG\" or \"pcx\").\r\nNote that IMG_Load_IO cannot load TGA images.\r\n\r\nTo create a surface from an XPM image included in C source, use:\r\n\r\n\tSDL_Surface *IMG_ReadXPMFromArray(char **xpm);\r\n\r\nAn example program 'showimage' is included, with source in examples/showimage.c\r\n\r\nDocumentation is also available online at https://wiki.libsdl.org/SDL_image\r\n\r\nThis library is under the zlib License, see the file \"LICENSE.txt\" for details.\r\n\r\nNote:\r\nSupport for AVIF, JPEG-XL, TIFF, and WebP are not included by default because of the size of the decode libraries, but you can get them by running external/download.sh\r\n- When building with CMake, you can enable the appropriate SDLIMAGE_* options defined in CMakeLists.txt. SDLIMAGE_VENDORED allows switching between system and vendored libraries.\r\n- When building with configure/make, you can build and install them normally and the configure script will detect and use them.\r\n- When building with Visual Studio, you will need to build the libraries and then add the appropriate LOAD_* preprocessor define to the Visual Studio project.\r\n- When building with Xcode, you can edit the config at the top of the project to enable them, and you will need to include the appropriate framework in your application.\r\n- For Android, you can edit the config at the top of Android.mk to enable them.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibsdl-org%2FSDL_image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibsdl-org%2FSDL_image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibsdl-org%2FSDL_image/lists"}