You are here

public static function video_utility::imageSave in Video 7.2

1 call to video_utility::imageSave()
TranscoderAbstractionFactoryFfmpeg::extractFrames in transcoders/TranscoderAbstractionFactoryFfmpeg.inc
Extract frames from the current video.

File

./video.utility.inc, line 116
This file will be used to keep all utility functions data structures.

Class

video_utility
Helper functions for the Video module.

Code

public static function imageSave($resource, $path, $type) {
  switch ($type) {
    case 'png':
      return imagepng($resource, $path);
    case 'jpg':
      return imagejpeg($resource, $path);
  }
  throw new Exception('Unknown type "' . $type . '"');
}