Skip to content

Commit

Permalink
remove resize plus one on base image
Browse files Browse the repository at this point in the history
  • Loading branch information
arthur-feral committed Nov 24, 2016
1 parent b5b3638 commit 14633f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/generator/imageGenerator/imageGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = (logger) => {
const generateBaseImage = (size) => {
return when.promise((resolve, reject) => {
gm(`${__dirname}/base.png`)
.resize(null, parseInt(size, 10) + 1)
.resize(null, parseInt(size, 10))
.write(baseImagePath, (imageError) => {
if (imageError) {
reject(imageError);
Expand Down Expand Up @@ -85,7 +85,7 @@ module.exports = (logger) => {
imagesDone++;
}
} catch (e) {
console.log(e)
logger.error(e)
}

if (alreadyProcessed) {
Expand Down

0 comments on commit 14633f3

Please sign in to comment.