Skip to content

jachin/exif_reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exif_reader

This is a library that calls the exif_tool command line tool and gets the EXIF metadata and brings it into Gleam with some nice types.

You need to have the exif_tool installed already and somewhere the shellout library can find it.

Someday it would be great if this library could just parse media files directly, but for now this solves my needs.

Running via CLI

You can run it as a cli program, although, there's probably not many good reasons to do that.

gleam run <media-file-path>

Using it in an Application

gleam add exif_reader@1
import exif_reader

pub fn main() -> Nil {
  let file_path = "picture.jpg"
  echo exif_reader.get_media_file_metadata(file_path)
    |> exif_reader.get_description
}

Development

gleam run   # Run the project
gleam test  # Run the tests

About

A Gleam package for reading exif metadata from media files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published