blob: 0bb0ff2c09265b4ebc462c67afd14ce683227d23 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import { FFmpegImage } from '@shared/ffmpeg'
import { getFFmpegCommandWrapperOptions } from './ffmpeg-options'
export function processGIF (options: Parameters<FFmpegImage['processGIF']>[0]) {
return new FFmpegImage(getFFmpegCommandWrapperOptions('thumbnail')).processGIF(options)
}
export function generateThumbnailFromVideo (options: Parameters<FFmpegImage['generateThumbnailFromVideo']>[0]) {
return new FFmpegImage(getFFmpegCommandWrapperOptions('thumbnail')).generateThumbnailFromVideo(options)
}
export function convertWebPToJPG (options: Parameters<FFmpegImage['convertWebPToJPG']>[0]) {
return new FFmpegImage(getFFmpegCommandWrapperOptions('thumbnail')).convertWebPToJPG(options)
}
|