Skip to content

Commit

Permalink
Debug stuff from issue #12
Browse files Browse the repository at this point in the history
  • Loading branch information
TechnikTobi committed Oct 30, 2024
1 parent 60d7d4f commit 347adc7
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions debug/issue_12/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[package]
name = "issue_12"
version = "0.1.0"
edition = "2021"

[dependencies]
little_exif = { path = "../../" }
Binary file added debug/issue_12/rsrc/PXL_20241007_142045194.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions debug/issue_12/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
use std::fs::copy;
use std::fs::remove_file;
use std::path::Path;

extern crate little_exif;
use little_exif::metadata::Metadata;
use little_exif::exif_tag::ExifTag;

fn main()
{
let jpg_path = Path::new("./rsrc/PXL_20241007_142045194.jpg");

// Read metadata from file
for tag in &Metadata::new_from_path(jpg_path).unwrap()
{
println!("{:?}", tag);
}
}

0 comments on commit 347adc7

Please sign in to comment.