Gi.save
You're seeing just the function
save
, go back to Gi module for more information.
Specs
save(Gi.Image.t(), Keyword.t()) :: Gi.Image.t()
Save image.
Options
- :path - Value as path. Save as image to path
Example
iex> Gi.open("test/example.jpg")
...> |> Gi.save()
%Gi.Image{
animated: false,
dirty: %{},
ext: ".jpg",
format: nil,
frame_count: 1,
height: nil,
list_command: [],
path: "test/example.jpg",
width: nil
}
iex> Gi.open("test/example.jpg")
...> |> Gi.save(path: "test/new_example.jpg")
%Gi.Image{
animated: false,
dirty: %{},
ext: ".jpg",
format: nil,
frame_count: 1,
height: nil,
list_command: [],
path: "test/new_example.jpg",
width: nil
}