class ffmpeg_animated_gif (View source)

Methods

__construct(string $output_file_path, int $width, int $height, int $frame_rate, int $loop_count = 0)

No description

addFrame(ffmpeg_frame $frame_to_add)

Add a frame to the end of the animated gif.

Details

__construct(string $output_file_path, int $width, int $height, int $frame_rate, int $loop_count = 0)

No description

Parameters

string $output_file_path
  • Location in the filesystem where the animated gif will be written.
int $width
  • Width of the animated gif.
int $height
  • Height of the animated gif.
int $frame_rate
  • Frame rate of the animated gif in frames per second.
int $loop_count
  • Number of times to loop the animation. Put a zero here to loop forever or omit this parameter to disable looping.

addFrame(ffmpeg_frame $frame_to_add)

Add a frame to the end of the animated gif.

Parameters

ffmpeg_frame $frame_to_add
  • The ffmpeg_frame object to add to the end of the animated gif.