Giter VIP home page Giter VIP logo

rexif's Introduction

rexif

RExif is a native Rust crate, written to extract EXIF data from JPEG and TIFF images.

It is in very early stages of development. Documentation and examples are still scarce, sorry about that. It is also my pet project to learn a bit of Rust. It is very fast: it takes about 2ms to parse an in-memory image (measured on Core i5).

The crate also contains a sample binary called 'rexiftool' that accepts files as arguments and prints the EXIF data. It gives a rough idea on how to use the crate.

I am still filling in the implementation of most EXIF tags. Merge requests, comments and criticisms about coding style, information about uncovered EXIF tags, sample images that are not parsed correctly -- in short, any sort of feedback is welcome!

Example

match rexif::parse_file(&file_name) {
	Ok(exif) => {
		println!("{} {} exif entries: {}", file_name,
			exif.mime, exif.entries.len());

		for entry in &exif.entries {
			println!("	{}: {}",
					entry.tag_readable, 
					entry.value_more_readable);
		}
	},
	Err(e) => {
		print!("Error in {}: {} {}", &file_name,
			Error::description(&e), e.extra).unwrap();
	}
}

The included tool refixtool accepts image file names as command-line parameters and prints EXIF data for them. The src/main.rs file is a good starting point to learn how to use the crate, then take a look into the ExifEntry struct.

Contact

Elvis Pfützenreuter - [email protected] - https://epxx.co

rexif's People

Contributors

elvis-epx avatar kaj avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.