sac_thumbnails v0.2.7 SacThumbnails.Simplify

Link to this section Summary

Link to this section Functions

Link to this function

apply_opts(image, opts)

Link to this function

create_if_not_exist(filename, url, out_path, height, width, circle)

Link to this function

create_thumb(url, output_path, opts)

Link to this function

create_thumb(atom, input_path, output_path, opts \\ [width: 200, height: 200, max_height: 10000000, max_height: 10000000, circle: false])

create_thumb(
  :docs | :image | :link | :pdf | :video,
  binary()
  | maybe_improper_list(
      binary() | maybe_improper_list(any(), binary() | []) | char(),
      binary() | []
    ),
  binary(),
  [
    {:circle, any()}
    | {:height, any()}
    | {:width, any()}
    | {:max_height, any()},
    ...
  ]
) :: :ok | {:error, atom()}
Link to this function

create_watermark(input_path \\ "priv/images/opa.png", output_path \\ "priv/media/thumbs/aloha.png", opts \\ [])

Link to this function

get_atom(extension)

get_atom(any()) :: any()
Link to this function

merge_image(foreground_image, background_image, output_path, x, y, opts \\ [])

Link to this function

nomear(input_path, text, opts \\ [])

Link to this function

output_filename(input_path, 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()
Link to this function

url_valid?(url)

Link to this function

validate_fields(opts)