From c4f70bb3feb80e69051751838e39ff0679f11d5d Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Fri, 3 Dec 2021 18:35:48 +0100 Subject: [PATCH] fix old imagemagick versions --- nekos.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 nekos.js diff --git a/nekos.js b/nekos.js old mode 100644 new mode 100755 index edc8c9c..5437ad2 --- a/nekos.js +++ b/nekos.js @@ -13,7 +13,7 @@ if(argv.help) { // /** //** /**/******* /**** /** /**/********* // /** //**/**/**//// /**/** /** /**////////** // /** //****/** /**//** //** ** /** - // // /** //***/********/** //** //******* ******** + // /** //***/********/** //** //******* ******** // // /// //////// // // /////// //////// console.log(`nekos Shows images of nekos. @@ -46,7 +46,7 @@ var sigPreventable = false; var sigint = false; async function parseFrames(fn) { - return (await $`magick identify -format "%T %W %H\n" ${fn}`).stdout.split("\n") + return (await $`identify -format "%T %W %H\n" ${fn}`).stdout.split("\n") .map(t => t.split(" ")) .map(t => ({ d: (1 / parseInt(t[0])) * 100, w: parseInt(t[1]) * 2.2, h: parseInt(t[2]) })) .map(t => {