Images: Difference between revisions

Jump to navigation Jump to search
1,142 bytes added ,  19 March 2020
Line 146: Line 146:
=== Crop or edit images in forms ===
=== Crop or edit images in forms ===


In some scenarios, you need to ingest images from various sources, and you need to select only a portion of the image, highlight a part of the image, or add some text. You don't have to use an external image editor, you can do this directly in the app.
In some scenarios, you need to select only a portion of the image, highlight a part of the image, or add some text. You don't have to use an external image editor, you can do this directly in the app.


In Woodford, when you select an image field on a form tab, the '''Properties''' pane lists a number of actions, such as '''Resize Image''' or '''Clear''' (see [[Form#Image_Actions|full list]]).
In Woodford, when you select an image field on a form tab, the '''Properties''' pane lists a number of actions, such as '''Resize Image''' or '''Clear''' (see [[Form#Image_Actions|full list]]).
Line 162: Line 162:
File:Image editor.png
File:Image editor.png
</gallery>
</gallery>
=== Automatic image processing ===
In some scenarios, you need to ingest large number images from various sources, and you would like to perform some image normalization automatically, for example, decrease image dimensions or crop image to a certain aspect ratio. This option is available for images added using the '''Add Media''' button or using the photo or plus button on a related list. In the following example, we add a new media tab and write an On Load rule that performs the normalization.
# Edit an [[app projects|app project]], then select an entity from the '''Project''' menu, for example, Contact.
# Click '''Add Media''' to add a new tab to your form, then click '''OK'''. <br>[[File:Configure media tab.png]]
# Click '''On Load''' and specify the rule that should be performed.<br>[[File:On Load rule.png]]
# Select one of the enforcement modes: '''No Enforcement''' means that images are not modified; options starting with '''Auto''' perform the action autonomously; '''Crop in Image Editor''' launches an in-app editor that allows the user to crop the image manually.
# Click '''Save & Close''' to return to the form designer, then save the form and publish the project.


=== Entity image (Dynamics) ===
=== Entity image (Dynamics) ===

Navigation menu