Add appPath option to @types/gm (#39348)

This commit is contained in:
Sébastiaan
2019-11-04 19:52:34 +01:00
committed by Nathan Shively-Sanders
parent d9ec9f086f
commit 750fa4b376
2 changed files with 5 additions and 1 deletions

View File

@@ -370,7 +370,10 @@ gm(src).toBuffer(format, (err, buffer) => {
const imageMagick = gm.subClass({ imageMagick: true });
readStream = imageMagick(src)
.adjoin()
.stream();
.stream();
const customGm = gm.subClass({ appPath: '' });
readStream = customGm(src).stream();
const passStream = imageMagick(readStream).stream();

1
types/gm/index.d.ts vendored
View File

@@ -15,6 +15,7 @@ declare function m(width: number, height: number, color?: string): m.State;
declare namespace m {
interface ClassOptions {
appPath?: string;
imageMagick?: boolean;
nativeAutoOrient?: boolean;
}