View Source Bonfire.Files.MediaEdit (Bonfire v0.9.10-classic-beta.169)

Summary

Functions

Link to this function

banner(filename, max_width, max_height)

View Source
Link to this function

dominant_color(file_path_or_binary_or_stream, bins \\ 15, fallback \\ "#FFF8E7")

View Source

Returns the dominant color of an image (given as path, binary, or stream) as HEX value.

bins is an integer number of color frequency bins the image is divided into. The default is 10.

Link to this function

frame_to_scrub(fps, frame_count, scrub_opts)

View Source
Link to this function

image(filename, max_width, max_height)

View Source
Link to this function

image_resize_thumbnail(image, max_size, waffle_file \\ %Waffle.File{}, tmp_path \\ nil)

View Source
Link to this function

image_save_temp_file(image, waffle_file \\ %Waffle.File{}, tmp_path \\ nil)

View Source
Link to this function

thumbnail(filename, max_size)

View Source
Link to this function

thumbnail_video(filename, max_size, scrub_opts)

View Source

Converts video into a browser-supported format. NOTE: in dev mode on OSX, you can install ffmpeg with maximal features using https://gist.github.com/Piasy/b5dfd5c048eb69d1b91719988c0325d8?permalink_comment_id=3812563#gistcomment-3812563

Link to this function

video_image_thumbnail(filename, max_size, scrub_opts, waffle_file \\ %Waffle.File{})

View Source