fix old imagemagick versions

This commit is contained in:
Daniel Bulant 2021-12-03 18:35:48 +01:00
parent 531cdf205f
commit c4f70bb3fe

4
nekos.js Normal file → Executable file
View file

@ -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 => {