Skip to content
Snippets Groups Projects
Unverified Commit 55a578a8 authored by MeiMei's avatar MeiMei Committed by GitHub
Browse files

fix: Unable to generate video thumbnails (#8696)

* fix: Unable to generate video thumbnails

* CHANGELOG
parent 02f9e5d6
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ You should also include the user name that made the change.
- Server: fix internal in-memory caching @Johann150
- Server: use correct order of attachments on notes @Johann150
- Server: prevent crash when processing certain PNGs @syuilo
- Server: Fix unable to generate video thumbnails @mei23
## 12.110.1 (2022/04/23)
......
import * as fs from 'node:fs';
import * as tmp from 'tmp';
import { IImage, convertToJpeg } from './image-processor.js';
import * as FFmpeg from 'fluent-ffmpeg';
import FFmpeg from 'fluent-ffmpeg';
export async function GenerateVideoThumbnail(path: string): Promise<IImage> {
const [outDir, cleanup] = await new Promise<[string, any]>((res, rej) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment