sac_thumbnails v0.2.3 SacThumbnails.Simplify

Link to this section Summary

Link to this section Functions

Link to this function

create_thumb(params)

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

create_thumb(atom, map)

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

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

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

get_atom(extension)

get_atom(any()) :: :docs | :image | :link | :pdf | :video
Link to this function

output_filename(source, output_ext \\ "")

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()