Table of contents


Description

Action for editing and saving images.

How to add an action to a project?

Via the context menu Add ActionDataImages Processing

Or use smart search .

What is it used for?

How to work with an action?

Image source

  1. Instance screenshot - a screenshot of the active tab of the instance (browser)

  2. File - file is being processed. During installation, you must specify the path to the file on your computer. It is possible to use macros.

  3. URL - after installation, you must specify the link on which the picture will be located. With it, work will be done

If a URL is used as the source of the image, then it should be borne in mind that the download occurs through your real IP address. Even if a proxy is installed in the project.


Processing

Without processing

Resize

Allows you to resize the image

Crop

Allows you to crop the image

Rotate

Allows you to rotate the image by the desired number of degrees.

Watermark

More on Horizontal Blending

  1. Location - where text / images will be placed

  2. Indent - specifies the indent to the left or top, in pixels. The indent is relative to the location that was specified earlier.

Mirror reflection

Allows you to "mirror" the image according to the specified parameters.

Clear Exif

Cleans up all image metadata.

Save

You must specify the quality in percent and the path where to save the file.

The path must be specified with the name and format of saving. Use of variables is possible.

Editing Metadata (EXIF)

Allows you to change certain metadata. All types of processing can be used with the installation except “Clear Exif”

Usage example

Let's imagine a situation that you wrote a template, but at some stage of working with the site, it ends with an error. To understand what is going wrong, we can take a screenshot at the time of the error to assess the situation visually.

Create an action Arbitrary numbers and strings (Random) , after that generate the number or name of the “thread”, put all this in the variable {-Variable.thread-} .

Next, we need to create a cube Bad exit in the project (Bad End) and lead a branch from it to images processing. We specify the settings, as in the screenshot:

Specify the path: {-Project.Directory -} {- Variable.thread -} \ Instance_screenshot.jpg

Also, you can add saving the page code {-Page.Dom-} through the Write to file action. This will allow us to catch errors that occur while working with the browser.

Useful links