Skip to content
This repository has been archived by the owner on Jul 24, 2022. It is now read-only.

Commit

Permalink
fix: use fixed version of apng2gif
Browse files Browse the repository at this point in the history
 - install stable version of apng2gif in each platform's package
manager.
  • Loading branch information
Nebu1eto committed Nov 9, 2019
1 parent b70fd46 commit a7cfb29
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
5 changes: 0 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"dependencies": {
"@discordjs/uws": "^11.149.1",
"@typegoose/typegoose": "^6.0.4",
"apng2gif-bin": "^1.7.1",
"bluebird": "^3.7.1",
"bufferutil": "^4.0.1",
"charset": "^1.0.1",
Expand Down
7 changes: 4 additions & 3 deletions src/utils/apng2gif.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Reference: https://github.com/suchipi/node-apng2gif
// CAUTION: Install APNG2GIF First.
// ex. sudo apt install apng2gif

import { spawn } from 'child_process'
const apng2gifBinPath = require('apng2gif-bin')

export interface TransformArguments {
transparencyThreshold?: number
Expand Down Expand Up @@ -43,7 +44,7 @@ export default function apng2gif (

return new Promise((resolve, reject) => {
const child = spawn(
apng2gifBinPath,
'apng2gif',
args,
Object.assign({}, defaultOptions, options)
)
Expand Down

0 comments on commit a7cfb29

Please sign in to comment.