0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions114

Image → Flip

AI-generated

Overview

This node operation flips an image along a specified axis. It supports input images provided either as a publicly accessible URL or as a buffer. Users can specify the axis on which to flip the image (e.g., horizontal or vertical). The node also allows setting the output as a URL and specifying a filename for the resulting image. This operation is useful for image manipulation tasks such as creating mirror images or adjusting image orientation.

Use Case Examples

  1. Flipping a product image horizontally to create a mirrored version for marketing materials.
  2. Flipping a user-uploaded photo vertically to correct orientation before further processing.

Properties

Name Meaning
Code Variables Variables defined in the code editor for the selected function, allowing dynamic input values.
Type of Data Specifies whether the input image is provided as a URL or a buffer.
URL The URL of the image to flip, must be publicly accessible. Shown only if Type of Data is URL.
Buffer The buffer of the image to flip. Shown only if Type of Data is Buffer.
Axis The axis on which to flip the image (e.g., horizontal or vertical).
File Name Filename of the image to operate on.
Get File as URL Whether to get the flipped image as a URL.

Output

JSON

  • url - URL of the flipped image if output as URL is enabled.
  • buffer - Buffer of the flipped image if input was provided as buffer.
  • axis - The axis along which the image was flipped.
  • fileName - Filename of the flipped image if specified.

Dependencies

  • An API key credential for the 0CodeKit service to perform image processing operations.

Troubleshooting

  • Ensure the input image URL is publicly accessible and valid to avoid errors fetching the image.
  • If using buffer input, verify the buffer data is correctly formatted and not corrupted.
  • Check that the axis parameter is correctly specified; invalid values may cause the operation to fail.
  • If the node throws authentication errors, verify that the API key credential is correctly configured and has necessary permissions.

Links

Discussion