Exiftool.Result (exiftool v0.1.0) View Source

Information about the input file.

Link to this section Summary

Functions

Cast a map into a %Result{} struct

Convert the map keys and prepare them for the Result{} struct.

Link to this section Types

Specs

t() :: %Exiftool.Result{
  access_date_time: binary() | nil,
  aperture: binary() | nil,
  bits_per_sample: binary() | nil,
  camera_model_name: binary() | nil,
  color_components: binary() | nil,
  color_space: binary() | nil,
  color_tone: binary() | nil,
  contrast: binary() | nil,
  datetime_original: binary() | nil,
  directory: binary() | nil,
  drive_mode: binary() | nil,
  encoding_process: binary() | nil,
  exiftool_version_number: binary() | nil,
  exposure_compensation: binary() | nil,
  extension: binary() | nil,
  file_access_date_time: binary() | nil,
  file_inode_change_date_time: binary() | nil,
  file_modification_date_time: binary() | nil,
  file_name: binary() | nil,
  file_number: binary() | nil,
  file_permissions: binary() | nil,
  file_size: binary() | nil,
  file_type: binary() | nil,
  file_type_extension: binary() | nil,
  flash: binary() | nil,
  focal_length: binary() | nil,
  focus_mode: binary() | nil,
  image_height: binary() | nil,
  image_size: binary() | nil,
  image_width: binary() | nil,
  iso: binary() | nil,
  jfif_version: binary() | nil,
  lens: binary() | nil,
  megapixels: binary() | nil,
  metering_mode: binary() | nil,
  mime_type: binary() | nil,
  owner_name: binary() | nil,
  quality: binary() | nil,
  resolution_unit: binary() | nil,
  saturation: binary() | nil,
  serial_number: binary() | nil,
  sharpness: binary() | nil,
  shootting_mode: binary() | nil,
  shutter_speed: binary() | nil,
  white_balance: binary() | nil,
  x_resolution: binary() | nil,
  y_cb_cr_sub_sampling: binary() | nil,
  y_resolution: binary() | nil
}

Link to this section Functions

Specs

cast(map()) :: t()

Cast a map into a %Result{} struct

## Examples

  iex> Result.cast(%{bits_per_sample: "8", color_components: "3",})
  %Result{bits_per_sample: "8", color_components: "3"}
Link to this function

sanitize_map(result_map)

View Source

Specs

sanitize_map(map()) :: map()

Convert the map keys and prepare them for the Result{} struct.

  • Replace spaces.
  • Repalce backslashes.
  • Replace dots.
  • Downcase the key