Syntax
StraightenFile(file, [template])
Parameters
| Parameter | Type | Details |
|---|---|---|
file | any value | required |
template | any value | optional |
Returns
text
Example
StraightenFile(Get("photo"), "pce-3f61aa0d535ce9b8")StraightenFileStraightens a document photo already stored (pce-…, or the value of a file field): turned the right way up, tilt corrected, cropped. ODESA stores a new version of the file, the original stays restorable; a photo already straightened is not redone. Optional template: the reference photo of the form (pce-…, or a list of at most 5). Returns the file id. Requires ODESA 1.11.0 or later.
StraightenFile(file, [template])
| Parameter | Type | Details |
|---|---|---|
file | any value | required |
template | any value | optional |
text
StraightenFile(Get("photo"), "pce-3f61aa0d535ce9b8")