Simplify flag, fix togif crash, update license

This commit is contained in:
Essem 2023-01-03 22:03:51 -06:00
parent 3c16599126
commit 5ba0336837
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
4 changed files with 7 additions and 17 deletions

View file

@ -38,7 +38,7 @@ export default function run(object) {
// If no image type is given (say, the command generates its own image), make it a PNG.
const fileExtension = object.params.type ? object.params.type.split("/")[1] : "png";
promise.then(buf => {
object.params.data = buf;
if (buf) object.params.data = buf;
const objectWithFixedType = Object.assign({}, object.params, { type: fileExtension });
if (objectWithFixedType.gravity) {
if (isNaN(objectWithFixedType.gravity)) {