{"id":69081,"library":"imagefmt","title":"Imagefmt","description":"Image decoder and encoder supporting PNG, TGA, BMP, and JPEG formats.","status":"active","version":"4.0.0","language":"rust","source_language":null,"source_url":"https://github.com/lgvz/imagefmt","tags":["image","png","bmp","jpeg","tga","decoder","encoder"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nimagefmt = \"4.0.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add imagefmt","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Reader","correct":"use imagefmt::Reader;"}],"quickstart":{"code":"use imagefmt::Reader;\n\nfn main() {\n    let img = Reader::new(\"image.png\").unwrap().read().unwrap();\n    println!(\"Image dimensions: {}x{}\", img.width(), img.height());\n}","lang":"rust","description":"Reads a PNG image file and prints its dimensions."},"warnings":[{"fix":"Use another crate for JPEG encoding","message":"JPEG encoding not supported (only decoding)","severity":"gotcha","affected_versions":">=4.0.0"}],"env_vars":null,"search_vec":"'bmp':9,15 'decod':3,18 'encod':5,19 'format':12 'imag':2,13 'imagefmt':1 'jpeg':11,16 'png':7,14 'support':6 'tga':8,17","created_at":"2026-06-17T17:57:16.392391+00:00","updated_at":"2026-06-17T17:57:16.392391+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/lgvz/imagefmt","github":"https://github.com/lgvz/imagefmt","docs":"https://docs.rs/imagefmt/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"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}}