{"id":60444,"library":"cimg","title":"CImg","description":"The CImg Library is a small, open-source, and modern C++ toolkit for image processing","status":"active","version":"3.7.5","language":"cpp","source_language":null,"source_url":null,"tags":["image","processing","header-only","c++"],"install":[{"cmd":"vcpkg install cimg","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(cimg CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE CImg::CImg)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"CImg.h","correct":"#include <CImg.h>"}],"quickstart":{"code":"#include \"CImg.h\"\nusing namespace cimg_library;\n\nint main() {\n    CImg<unsigned char> img(640, 400, 1, 3, 0);\n    img.draw_text(10, 10, \"Hello, World!\", CImg<unsigned char>::color(255, 255, 255));\n    img.save_bmp(\"output.bmp\");\n    return 0;\n}","lang":"cpp","description":"Create and save a simple image with text"},"warnings":[{"fix":"Install corresponding development packages and set CIMG_USE_PNG, CIMG_USE_JPEG, etc. as needed.","message":"CImg is header-only but may require linking against system libraries (e.g., libpng, libjpeg) for image format support.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'c':13,23 'cimg':1,3 'header':21 'header-on':20 'imag':16,18 'librari':4 'modern':12 'open':9 'open-sourc':8 'process':17,19 'small':7 'sourc':10 'toolkit':14","created_at":"2026-06-16T19:31:17.930724+00:00","updated_at":"2026-06-16T19:31:17.930724+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}