View Source Bonfire.Files.MediaEdit (Bonfire v0.9.10-classic-beta.169)
Summary
Functions
Returns the dominant color of an image (given as path, binary, or stream) as HEX value.
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
Functions
Link to this function
dominant_color(file_path_or_binary_or_stream, bins \\ 15, fallback \\ "#FFF8E7")
View SourceReturns 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
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 SourceConverts 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