Gi.open

You're seeing just the function open, go back to Gi module for more information.

Specs

open(binary()) :: Gi.Image.t() | Gi.Error.t()

Opens image source, raises a File.Error exception in case of failure.

Parameters

  • path: path to file image.

Example

iex>  Gi.open("test/example.jpg")
%Gi.Image{
  animated: false,
  dirty: %{},
  ext: ".jpg",
  format: nil,
  frame_count: 1,
  height: nil,
  list_command: [],
  path: "test/example.jpg",
  width: nil
}