ExVenture.Images (ExVenture v0.1.0) View Source

Common module for dealing with image conversion

Link to this section Summary

Functions

Convert an image file using image magick

Delete the old images for the passed in struct

Upload the file to the path in storage

Link to this section Types

Link to this section Functions

Specs

convert(Stein.Storage.FileUpload.t(), opts()) ::
  {:ok, Path.t()} | {:error, :convert}

Convert an image file using image magick

Link to this function

maybe_delete_old_images(struct, key, path_fun)

View Source

Delete the old images for the passed in struct

Deletes original and thumbnail sizes if present.

Upload the file to the path in storage