{"id":58796,"library":"imgref","title":"Imgref","description":"A basic 2-dimensional slice for safe and convenient handling of pixel buffers with width, height and stride.","status":"active","version":"1.12.0","language":"rust","source_language":null,"source_url":"https://github.com/kornelski/imgref","tags":["image","pixel","buffer","2d","graphics"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nimgref = \"1.12.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add imgref","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"ImgRef","correct":"use imgref::ImgRef;"}],"quickstart":{"code":"use imgref::ImgRef;\n\nfn main() {\n    let pixels = vec![0u8; 100];\n    let img = ImgRef::new(&pixels, 10, 10);\n    println!(\"Image dimensions: {}x{}\", img.width(), img.height());\n}","lang":"rust","description":"Creates an ImgRef from a pixel buffer with specified width and height."},"warnings":[],"env_vars":null,"search_vec":"'2':4 '2d':23 'basic':3 'buffer':14,22 'conveni':10 'dimension':5 'graphic':24 'handl':11 'height':17 'imag':20 'imgref':1 'pixel':13,21 'safe':8 'slice':6 'stride':19 'width':16","created_at":"2026-06-16T16:38:49.744075+00:00","updated_at":"2026-06-16T16:38:49.744075+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://lib.rs/crates/imgref","github":"https://github.com/kornelski/imgref","docs":"https://docs.rs/imgref/","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-16","next_check":"2026-12-13","install_tag":null}}