Current section

Files

Jump to
melib lib melib image.ex
Raw

lib/melib/image.ex

defmodule Melib.Image do
@type postfix :: binary
@type path :: binary
@type md5 :: binary
@type md5_hash :: binary
@type sha512 :: binary
@type sha512_hash :: binary
@type sha256 :: binary
@type sha256_hash :: binary
@type filename :: binary
@type size :: integer
@type format :: binary
@type ext :: binary
@type mime_type :: mime_type
@type width :: integer
@type height :: integer
@type animated :: boolean
@type frame_count :: integer
@type operations :: Keyword.t()
@type dirty :: %{atom => any}
@type exif :: %{atom => any}
@type file :: binary
@type t :: %__MODULE__{
size: size,
md5: md5,
md5_hash: md5_hash,
sha512: sha512,
sha512_hash: sha512_hash,
sha256: sha256,
sha256_hash: sha256_hash,
frame_count: frame_count,
filename: filename,
path: path,
ext: ext,
format: format,
postfix: postfix,
mime_type: mime_type,
width: width,
height: height,
animated: animated,
operations: operations,
dirty: dirty,
exif: exif,
file: file
}
defstruct path: nil,
size: nil,
md5: nil,
md5_hash: nil,
sha512: nil,
sha512_hash: nil,
sha256: nil,
sha256_hash: nil,
frame_count: 1,
filename: nil,
ext: nil,
format: nil,
postfix: nil,
mime_type: nil,
width: nil,
height: nil,
animated: false,
operations: [],
exif: %{},
dirty: %{},
file: nil
end