Only this pageAll pages
Powered by GitBook
1 of 8

Image Manipulation

Image Manipulation

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Overview

Automation procedures for image manipulation, including how to resize, rotate, convert to grayscale, and flip images.

Getting Started

To begin automating in this category, follow the guides below. Use the provided examples and syntaxes to add the procedures to your automations.

Image Manipulation Procedures

Converting Images to Grayscale
Flipping Images
QR Code Generation
Resizing Images
Rotating Images
Text Visualization

Converting Images to Grayscale

To convert an image to grayscale, use the following syntax. Example:

get the image
convert the image to grayscale

Resizing Images

To resize an image, specify the desired height and width.

Example:

This command resizes the image to a height of 600 pixels and a width of 800 pixels.

get the image
resize the image with
    the height is 600
    the width is 800

Text Visualization

Visualizing text as a word cloud is a powerful way to represent the frequency of words in a given text. This section covers how to create word clouds with specific attributes or default settings.

Creating Word Clouds

To create a word cloud, specify the text and any desired attributes such as background color, width, and height.

Word Cloud with Specific Attributes

Example:

This command creates a word cloud with the specified text, background color, width, and height.

Word Cloud with Default Settings

Example:

This command creates a word cloud with the specified text using default settings.

Image Generation

Note: AI image generation is not currently supported by Kognitos.

the text is "Hello world, hello everyone"
visualize the text as a word cloud with
    the background color is "black"
    the width is 600
    the height is 400
the text is "Data science, machine learning, artificial intelligence"
visualize the text as a word cloud

QR Code Generation

Generating QR codes is a useful feature for encoding data such as URLs and WiFi configurations. This section covers how to generate QR codes with different types of data.

Generate a QR Code with a URL

Example:

generate a QR code with
    the data is "https://www.example.com"

This command generates a QR code containing the URL "https://www.example.com".

Generate a QR Code with WiFi Configuration

Example:

This command generates a QR code containing the WiFi configuration for a network named "mynetwork" with the password "mypass".

generate a QR code with
    the data is "WIFI:T:WPA;S:mynetwork;P:mypass;;"

Rotating Images

To rotate an image, specify the angle and direction.

Rotate Clockwise

Example:

get the image
rotate the image with
    the angle is 90
    the direction is "clockwise"

This rotates the image 90 degrees clockwise.

Rotate Counter-Clockwise

Example:

This rotates the image 45 degrees counter-clockwise.

get the image
rotate the image with
    the angle is 45
    the direction is "counter-clockwise"

Flipping Images

To flip an image, specify the mode (horizontal or vertical).

Flip Horizontally (Default)

get the image
flip the image

This flips the image horizontally.

Flip Vertically

get the image
flip the image with
    the mode is "vertical"

This flips the image vertically.