Skip to content

Commit

Permalink
fix crop module (#1463)
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabhshuklax authored and jywarren committed Jan 13, 2020
1 parent 12c422a commit bfff7e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/modules/Crop/Module.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ module.exports = function CropModule(options, UI) {

var step = this;

options.step.input = input.src;

function extraManipulation(pixels) {
const newPixels = require('./Crop')(pixels, options, function() {
// We should do this via event/listener:
Expand Down
4 changes: 2 additions & 2 deletions src/modules/Crop/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
"w": {
"type": "string",
"desc": "Width of crop",
"default": "50%"
"default": "100%"
},
"h": {
"type": "string",
"desc": "Height of crop",
"default": "50%"
"default": "100%"
},
"backgroundColor": {
"type": "text",
Expand Down

0 comments on commit bfff7e7

Please sign in to comment.