getColors(fileBuffer, type.mimeType).then(colors => {
                console.info('start image colors', new Date());
                let rgbColor = [];
                let hexColor = [];
                colors.forEach(function (color) {