|
@@ -13,7 +13,7 @@ const child_process_1 = require("child_process");
|
|
|
const fs_1 = require("fs");
|
|
|
const loggers_1 = require("./loggers");
|
|
|
const logger = (0, loggers_1.getLogger)('gifski');
|
|
|
-const sizeLimit = 10 * Math.pow(2, 20);
|
|
|
+const sizeLimit = +Infinity;
|
|
|
const roundToEven = (n) => Math.ceil(n / 2) * 2;
|
|
|
exports.default = (inputFilePath, targetWidth) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
const outputFilePath = inputFilePath.replace(/(?:\.[^.]*)?$/, '.gif');
|
|
@@ -23,10 +23,10 @@ exports.default = (inputFilePath, targetWidth) => __awaiter(void 0, void 0, void
|
|
|
'-o',
|
|
|
outputFilePath,
|
|
|
'--fps',
|
|
|
- '12.5',
|
|
|
+ '14.985',
|
|
|
'--quiet',
|
|
|
'--quality',
|
|
|
- '90',
|
|
|
+ '96',
|
|
|
];
|
|
|
if (typeof (targetWidth) === 'number') {
|
|
|
args.push('--width', roundToEven(targetWidth).toString());
|