VMTech Edit Image icon

VMTech Edit Image

Edit images with a sharp-based Parity+ pipeline and robust text rendering

Shear

AI-generated

Summary

Shears an input image along horizontal (X) and vertical (Y) axes using an affine transformation matrix.

Inputs

  • degreesX (required) — Horizontal shear angle in degrees. Defaults to 0.
  • degreesY (required) — Vertical shear angle in degrees. Defaults to 0.
  • backgroundColor — Background color for the canvas after shearing. Defaults to fully transparent (#00000000).

Output shape

A single binary item containing the sheared image.

The operation returns an image with a larger canvas than the input to accommodate the sheared shape. The background color fills the expanded area.

Examples

Example 1: Create a diagonal perspective effect on an image.

Set degreesX to 15 and degreesY to 10.

Example 2: Apply a simple tilt to an image.

Set degreesX to 5 and degreesY to 0.

Links

Discussion