thumbnex v0.3.2 Thumbnex.ExtractFrame
Link to this section 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).
Link to this section Functions
Link to this function
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"
.
Link to this function
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"
.