Add png support

This commit is contained in:
Dolan
2018-01-22 22:05:20 +00:00
parent e6d3577f74
commit 3dc6e71aaf
4 changed files with 3 additions and 1 deletions

View File

@ -26,7 +26,7 @@ export class Media {
const dimensions = sizeOf(filePath);
const imageData = {
referenceId: this.map.values.length + 3,
referenceId: this.map.size + 3,
stream: fs.createReadStream(filePath),
path: filePath,
fileName: key,