Commits (2)
{
"name": "mfgames-writing-format",
"version": "0.10.3",
"version": "0.10.4",
"description": "A command-line framework for formatting books into a variety of formats.",
"repository": {
"type": "git",
......
......@@ -111,10 +111,6 @@ function getFormatImageRequest(content: ContentArgs, href: string, imagePath: st
function processImage(content: ContentArgs, imageRequest: FormatImageRequest): Promise<FormatImageRequest> {
// Make a little noise.
content.logger.debug(`Processing image ${imageRequest.id}: ${imageRequest.imagePath}`);
content.logger.debug(`Image Buffer: ${imageRequest.buffer}`);
let FileType = require("file-type");
let imageMime = FileType(imageRequest.buffer);
content.logger.debug(`File Type: ${imageMime}`);
// Start by reading in the image.
var promise: Promise<any> = jimp.read(imageRequest.imagePath);
......