Server image crop on node produces error w/default settings

Wappler Version : 3.4
Operating System : Node

Expected behavior

The following crop setup should work on Node as it does on PHP

Screen Shot 2020-10-20 at 3.26.43 PM

Actual behavior

{
  "status": "500",
  "message": "image.crop: x is required.",
  "stack": "Error: image.crop: x is required.\n    at App.parseRequired (/opt/node_app/lib/core/app.js:293:19)\n    at App.crop (/opt/node_app/lib/modules/image.js:103:25)\n    at App._exec (/opt/node_app/lib/core/app.js:255:57)\n    at App._exec (/opt/node_app/lib/core/app.js:234:28)\n    at async App.exec (/opt/node_app/lib/core/app.js:205:9)\n    at async App.define (/opt/node_app/lib/core/app.js:188:9)"
}

How to reproduce

see above. Changing x and y to actual values works, however the default of center and middle produces the error.

Similar results from other image processor actions that use X: center and Y: middle as default.

EDIT: Using negative numbers (px from right) and %, also do not work on Node.

The image processor has been updated a while back, does this problem still exist?

Hey Patrick, yes the center and middle values for X and Y now work in Node.

But the negative numbers still do not

fixed in Wappler 3.5.5

This topic was automatically closed after 4 days. New replies are no longer allowed.