MCPcopy Index your code
hub / github.com/cloudconvert/cloudconvert-cli / createThumbnailCommand

Function createThumbnailCommand

src/commands/thumbnail.ts:6–27  ·  view source on GitHub ↗
(runJob: JobRunner)

Source from the content-addressed store, hash-verified

4import type { JobRunner } from './types.js';
5
6export function createThumbnailCommand(runJob: JobRunner): CommandModule<object, object> {
7 return createFileJobCommand(
8 {
9 command: 'thumbnail <files..>',
10 describe: 'Create thumbnails',
11 fileDescription: 'Path(s) to file(s) to convert',
12 operation: 'thumbnail',
13 format: {
14 alias: 'f',
15 describe: 'Set the thumbnail format',
16 default: 'png',
17 required: true
18 },
19 examples: [
20 'cloudconvert thumbnail input.pdf',
21 'cloudconvert thumbnail -f jpg --output-dir output/ directory/*',
22 'cloudconvert thumbnail -f jpg --width=200 --height=200 --fit=crop input.pdf'
23 ]
24 },
25 runJob
26 );
27}

Callers 1

createCliFunction · 0.85

Calls 1

createFileJobCommandFunction · 0.85

Tested by

no test coverage detected