{"id":60134,"library":"tiff","title":"libtiff","description":"A library for reading and writing Tagged Image File Format (TIFF) files.","status":"active","version":"4.7.1","language":"cpp","source_language":null,"source_url":null,"tags":["image","tiff","graphics","file-format"],"install":[{"cmd":"vcpkg install tiff","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(tiff CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE TIFF::TIFF)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"tiffio.h","correct":"#include <tiffio.h>"}],"quickstart":{"code":"#include <tiffio.h>\n#include <iostream>\n\nint main() {\n    TIFF* tif = TIFFOpen(\"image.tif\", \"r\");\n    if (tif) {\n        uint32_t w, h;\n        TIFFGetField(tif, TIFFTAG_IMAGEWIDTH, &w);\n        TIFFGetField(tif, TIFFTAG_IMAGELENGTH, &h);\n        std::cout << \"Image size: \" << w << \"x\" << h << std::endl;\n        TIFFClose(tif);\n    }\n    return 0;\n}","lang":"cpp","description":"Open a TIFF file and read its dimensions."},"warnings":[{"fix":"Ensure you link against the correct version and use the corresponding header files.","message":"libtiff has multiple incompatible major versions (e.g., 3.x vs 4.x) with different APIs.","severity":"breaking","affected_versions":">=3.0.0"}],"env_vars":null,"search_vec":"'file':10,13,18 'file-format':17 'format':11,19 'graphic':16 'imag':9,14 'librari':3 'libtiff':1 'read':5 'tag':8 'tiff':12,15 'write':7","created_at":"2026-06-16T19:17:59.255857+00:00","updated_at":"2026-06-16T19:17:59.255857+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}}