Skip to content

Commit

Permalink
Add maxBuffer to spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
seanlw committed Jun 15, 2020
1 parent fa5cd5b commit 8b4d558
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@
"ext": "carp",
"name": "Digital Projects File",
"icon": "resources/carp.ico",
"description": "Digital projects file",
"role": "Editor"
"description": "Digital projects file"
}
},
"linux": {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/imagemagick.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ export const convert = async (

const args = [src].concat(options).concat([dest])
return spawn('magick', args, {
encoding: 'utf8'
maxBuffer: 200 * 1024
}).catch(e => { throw new Error(`${e.message}: ${e.stderr}`) })
}

0 comments on commit 8b4d558

Please sign in to comment.