Fix runtime issues.
This commit is contained in:
parent
9b14c67d80
commit
6b1c24855d
|
@ -1,4 +1,4 @@
|
||||||
export abstract class BaseOperation<P> {
|
export abstract class BaseOperation<P extends {}> {
|
||||||
public abstract get default(): P;
|
public abstract get default(): P;
|
||||||
|
|
||||||
public parameters: P;
|
public parameters: P;
|
||||||
|
|
|
@ -89,7 +89,7 @@ async function main(): Promise<void> {
|
||||||
} else {
|
} else {
|
||||||
const fullOutputFile = path.join(baseDir, outputFile);
|
const fullOutputFile = path.join(baseDir, outputFile);
|
||||||
if (createInputImage) {
|
if (createInputImage) {
|
||||||
await execa('magick', [
|
await execa('convert', [
|
||||||
'-size',
|
'-size',
|
||||||
`${width}x${height}`,
|
`${width}x${height}`,
|
||||||
'xc:white',
|
'xc:white',
|
||||||
|
@ -116,8 +116,7 @@ async function main(): Promise<void> {
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(`* Writing ${compressedFile}`);
|
console.log(`* Writing ${compressedFile}`);
|
||||||
await execa('magick', [
|
await execa('convert', [
|
||||||
'convert',
|
|
||||||
fullOutputFile,
|
fullOutputFile,
|
||||||
'-quality',
|
'-quality',
|
||||||
'92',
|
'92',
|
||||||
|
|
Loading…
Reference in New Issue