{"id":24857409,"url":"https://github.com/vstroebel/jfifdump","last_synced_at":"2025-10-15T03:30:23.766Z","repository":{"id":43745099,"uuid":"364336708","full_name":"vstroebel/jfifdump","owner":"vstroebel","description":"Dump structure of a jpeg file","archived":false,"fork":false,"pushed_at":"2024-10-05T11:32:43.000Z","size":100,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-09T13:44:47.637Z","etag":null,"topics":["command-line-tool","jpeg"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vstroebel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-04T17:35:29.000Z","updated_at":"2024-10-05T11:32:47.000Z","dependencies_parsed_at":"2023-02-19T15:16:23.305Z","dependency_job_id":null,"html_url":"https://github.com/vstroebel/jfifdump","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vstroebel%2Fjfifdump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vstroebel%2Fjfifdump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vstroebel%2Fjfifdump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vstroebel%2Fjfifdump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vstroebel","download_url":"https://codeload.github.com/vstroebel/jfifdump/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236558797,"owners_count":19168519,"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":["command-line-tool","jpeg"],"created_at":"2025-01-31T17:53:27.908Z","updated_at":"2025-10-15T03:30:18.426Z","avatar_url":"https://github.com/vstroebel.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JFIF-Dump\n\n[![docs.rs badge](https://docs.rs/jfifdump/badge.svg)](https://docs.rs/jfifdump/latest/jfifdump/)\n[![crates.io badge](https://img.shields.io/crates/v/jfifdump.svg)](https://crates.io/crates/jfifdump/)\n[![Rust](https://github.com/vstroebel/jfifdump/actions/workflows/rust.yml/badge.svg)](https://github.com/vstroebel/jfifdump/actions/workflows/rust.yml)\n\nRead and dump structure of a jpeg file.\n\nThis crate can be used as a library or as a command line utility.\n\n## Installation\n\n```\n$ cargo install jfifdump-cli\n```\n\n## Usage\n\n```\n$ jfifdump image.jpeg\n```\n\n## Command-line options\n\n```\nRead and dump structure of a jpeg file\n\nUsage: jfifdump [OPTIONS] \u003cINPUT\u003e\n\nArguments:\n  \u003cINPUT\u003e  Jpeg file to use\n\nOptions:\n  -f, --format \u003cFORMAT\u003e  Output format [default: text] [possible values: text, json]\n  -v, --verbose          Make output more verbose\n  -h, --help             Print help\n  -V, --version          Print version\n```\n\n## Using jfifdump as a library\n\nTo use jfifdump as a library add the following to your Cargo.toml dependencies:\n\n```toml\njfifdump = \"0.6\"\n```\n\n## Example: Print image dimensions\n\n```rust\nuse jfifdump::{Reader, SegmentKind, JfifError};\nuse std::fs::File;\nuse std::io::BufReader;\n\nfn main() -\u003e Result\u003c(), JfifError\u003e {\n    let file = File::open(\"some.jpeg\")?;\n\n    let mut reader = Reader::new(BufReader::new(file))?;\n\n    loop {\n        match reader.next_segment()?.kind {\n            SegmentKind::Eoi =\u003e break,\n            SegmentKind::Frame(frame) =\u003e {\n                println!(\"{}x{}\", frame.dimension_x, frame.dimension_y);\n                break;\n            }\n            _ =\u003e {\n                // Ignore other segments\n            }\n        }\n    }\n\n    Ok(())\n}\n```\n\n## License\n\nThis project is licensed under either of\n\n* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or https://www.apache.org/licenses/LICENSE-2.0)\n* MIT license ([LICENSE-MIT](LICENSE-MIT) or https://opensource.org/licenses/MIT)\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in jfifdump by you, as\ndefined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvstroebel%2Fjfifdump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvstroebel%2Fjfifdump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvstroebel%2Fjfifdump/lists"}