mirror of
https://github.com/danbulant/nekos
synced 2026-05-19 03:58:34 +00:00
fix old imagemagick versions
This commit is contained in:
parent
531cdf205f
commit
c4f70bb3fe
1 changed files with 2 additions and 2 deletions
4
nekos.js
Normal file → Executable file
4
nekos.js
Normal file → Executable 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 => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue