thumbnex v0.2.2 Thumbnex.ExtractFrame

Summary

Functions

Extract multiple frames from the input file. Specify the number of frames, and the frames per second, to output

Extract a single frame from the input file. Specify the time offset in seconds (0 for still images)

Functions

multiple_frames(file_path, frame_count, fps, opts \\ [])

Extract multiple frames from the input file. Specify the number of frames, and the frames per second, to output.

Returns the path of the output file, a single file containing multiple frames.

Options:

  • :output_path - Where to store the resulting file. Defaults to temporary file.
  • :output_ext - File extension for output. Ignored if :output_path is set. Defaults to ".gif".
single_frame(file_path, time_offset_seconds, opts \\ [])

Extract a single frame from the input file. Specify the time offset in seconds (0 for still images).

Returns the path of the single frame image file.

Options:

  • :output_path - Where to store the resulting file. Defaults to temporary file.
  • :output_ext - File extension for output. Ignored if :output_path is set. Defaults to ".png".