diff options
Diffstat (limited to 'scripts/regenerate-thumbnails.ts')
-rw-r--r-- | scripts/regenerate-thumbnails.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/regenerate-thumbnails.ts b/scripts/regenerate-thumbnails.ts index 50d06f6fd..a377baa61 100644 --- a/scripts/regenerate-thumbnails.ts +++ b/scripts/regenerate-thumbnails.ts | |||
@@ -1,13 +1,10 @@ | |||
1 | import { registerTSPaths } from '../server/helpers/register-ts-paths' | ||
2 | registerTSPaths() | ||
3 | |||
4 | import { map } from 'bluebird' | 1 | import { map } from 'bluebird' |
5 | import { program } from 'commander' | 2 | import { program } from 'commander' |
6 | import { pathExists, remove } from 'fs-extra' | 3 | import { pathExists, remove } from 'fs-extra' |
7 | import { generateImageFilename, processImage } from '@server/helpers/image-utils' | 4 | import { generateImageFilename, processImage } from '@server/helpers/image-utils' |
8 | import { THUMBNAILS_SIZE } from '@server/initializers/constants' | 5 | import { THUMBNAILS_SIZE } from '@server/initializers/constants' |
9 | import { VideoModel } from '@server/models/video/video' | ||
10 | import { initDatabaseModels } from '@server/initializers/database' | 6 | import { initDatabaseModels } from '@server/initializers/database' |
7 | import { VideoModel } from '@server/models/video/video' | ||
11 | 8 | ||
12 | program | 9 | program |
13 | .description('Regenerate local thumbnails using preview files') | 10 | .description('Regenerate local thumbnails using preview files') |