Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
9
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
mfgames-writing
mfgames-writing-format-js
Compare Revisions
v0.10.1...v0.10.2
Commits (2)
Changed debugging messages to investigate CI issues.
· f2a61cfa
Dylan R. E. Moonfire
authored
Apr 16, 2017
f2a61cfa
0.10.2
· 1b3f903f
Dylan R. E. Moonfire
authored
Apr 16, 2017
1b3f903f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
package.json
package.json
+1
-1
src/image.ts
src/image.ts
+3
-0
No files found.
package.json
View file @
1b3f903f
{
"name"
:
"mfgames-writing-format"
,
"version"
:
"0.10.
1
"
,
"version"
:
"0.10.
2
"
,
"description"
:
"A command-line framework for formatting books into a variety of formats."
,
"repository"
:
{
"type"
:
"git"
,
...
...
src/image.ts
View file @
1b3f903f
...
...
@@ -111,6 +111,9 @@ 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
}
`
);
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
);
...
...