rsim v0.1.0 Rsim.StorageUploader View Source

Helper to get basic file info

Link to this section Summary

Functions

Saves image from provided file path

Saves image from provided URL

Saves resized image for specified

Link to this section Functions

Link to this function save_image_from_file(file_path, image_type) View Source
save_image_from_file(String.t(), atom()) :: {:ok, Rsim.Image.t()} | {:ok, :atom}
save_image_from_file(String.t(), Rsim.Image.t()) ::
  {:ok, Rsim.Image.t()} | {:ok, :atom}

Saves image from provided file path.

It saves image to storage and repo. It returns ID of created image

Link to this function save_image_from_url(url, image_type) View Source
save_image_from_url(String.t(), atom()) :: {:ok, Rsim.Image.t()} | {:ok, :atom}

Saves image from provided URL.

It saves image to storage and repo. It returns ID of created image

Link to this function save_resized_image(file_path, parent_image) View Source

Saves resized image for specified