Skip to content
This repository has been archived by the owner on Dec 12, 2018. It is now read-only.

Commit

Permalink
use 145 width on the images
Browse files Browse the repository at this point in the history
  • Loading branch information
frankbaele committed Jun 30, 2016
1 parent e33ae19 commit 8d97bdf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gulp/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ module.exports = function(gulp){
// paste original image on top of the canvas
canvas.paste(0, 0, image, function (err, image) {
// now image has a white background...
var width = 140;
var height = 140 * image.height() / image.width();
var width = 145;
var height = 145 * image.height() / image.width();
image.batch()
.resize(width, height)
.writeFile('./img/' + name + '_small.jpg', 'jpg', {quality: 65}, function (err) {
Expand Down
4 changes: 2 additions & 2 deletions gulp/featured.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ module.exports = function(gulp){
lwip.create(image.width(), image.height(), 'white', function (err, canvas) {
// paste original image on top of the canvas
canvas.paste(0, 0, image, function (err, image) {
var width = 140;
var height = 140 * image.height() / image.width();
var width = 145;
var height = 145 * image.height() / image.width();
image.batch()
.resize(width, height)
.writeFile('./img/' + score.id + '_' + name + '_small.jpg', 'jpg', {quality: 65}, function (err) {
Expand Down

0 comments on commit 8d97bdf

Please sign in to comment.