Class MiniExiftool
In: lib/mini_exiftool.rb
Parent: Object

Simple OO access to the Exiftool command-line application.

Methods

[]   []=   all_tags   changed?   changed_tags   command   command=   exiftool_version   from_hash   from_yaml   load   new   opts   original_tag   reload   revert   save   tags   to_hash   to_yaml   unify   writable_tags  

Classes and Modules

Class MiniExiftool::Error

Constants

VERSION = '1.0.1'

Attributes

composite  [RW] 
convert_encoding  [RW] 
errors  [RW] 
filename  [R] 
numerical  [RW] 
timestamps  [RW] 

Public Class methods

Returns a set of all known tags of Exiftool.

Returns the command name of the called Exiftool application.

Setting the command name of the called Exiftool application.

Returns the version of the Exiftool command-line application.

Create a MiniExiftool instance from a hash

Create a MiniExiftool instance from YAML data created with MiniExiftool#to_yaml

opts support at the moment

  • :numerical for numerical values, default is false
  • :composite for including composite tags while loading, default is true
  • :convert_encoding convert encoding (See -L-option of the exiftool command-line application, default is false
  • :timestamps generating DateTime objects instead of Time objects if set to DateTime, default is Time

    ATTENTION: Time objects are created using Time.local therefore they use your local timezone, DateTime objects instead are created without timezone!

Returns the options hash.

Returns the original Exiftool name of the given tag

Returns a set of all possible writable tags of Exiftool.

Public Instance methods

Returns the value of a tag.

Set the value of a tag.

Returns true if any tag value is changed or if the value of a given tag is changed.

Returns an array of all changed tags.

Load the tags of filename.

Reload the tags of an already readed file.

Revert all changes or the change of a given tag.

Save the changes to the file.

Returns an array of the tags (original tag names) of the readed file.

Returns a hash of the original loaded values of the MiniExiftool instance.

Returns a YAML representation of the original loaded values of the MiniExiftool instance.

[Validate]