Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion node_io_speed.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var SIZES = {
var performUpload = function(size, next){
var name = size + ".jpg"
sharp('cakes.jpg')
.resize(SIZES[size][0], SIZES[size][1])
.resize(SIZES[size][0])
.toFile(name, next);
}

Expand Down
2 changes: 1 addition & 1 deletion node_io_speed_streams.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var performUpload = function(size, next){
var resizer = function(){
var client = sharp()
return client.resize.
apply(client, SIZES[size])
apply(client, [SIZES[size][0]])
}

var stream = image.pipe(resizer(size)).pipe(fs.createWriteStream(name))
Expand Down