sac_thumbnails v0.2.0 SacThumbnails

Link to this section Summary

Link to this section Functions

Link to this function

create_thumb(atom, map)

create_thumb(:docs | :image | :pdf | :video, %{
  filename: binary(),
  height: any(),
  to_path: binary(),
  width: any()
}) :: :ok | {:error, atom()}
Link to this function

create_thumb(atom, source, saveto, width \\ 200, height \\ 200)

create_thumb(:docs | :image | :pdf | :video, binary(), binary(), any(), any()) ::
  :ok | {:error, atom()}
Link to this function

hash(length \\ 32)

hash(non_neg_integer()) :: binary()
Link to this function

output_filename(source, replace \\ "")

output_filename(
  binary()
  | maybe_improper_list(
      binary() | maybe_improper_list(any(), binary() | []) | char(),
      binary() | []
    ),
  binary()
  | (binary() ->
       binary()
       | maybe_improper_list(
           binary() | maybe_improper_list(any(), binary() | []) | byte(),
           binary() | []
         ))
) :: binary()
Link to this function

output_filename(source, width, height, replace \\ "")

output_filename(
  binary()
  | maybe_improper_list(
      binary() | maybe_improper_list(any(), binary() | []) | char(),
      binary() | []
    ),
  any(),
  any(),
  any()
) :: binary()
Link to this function

temp(path)

temp(binary()) :: <<_::32, _::_*8>>