Rotate an Image (image_rotate)

Rotate an image by a specified angle. Convert and save the rotated image in PNG format.

Rotate an Image

Purpose

This function allows you to rotate an image by a specified angle.

Use Cases

  • You have an image that needs to be rotated for better orientation.
  • You want to adjust the angle of an image for a specific purpose.

How to Use

  1. Upload an image or provide the image URL.
  2. Enter the rotation angle in degrees.
  3. Click on the "Rotate Image" button to process the image.

Input Values

  1. Upload Image - Select an image file from your device.
  2. Description: This is the image that you want to rotate.
  3. Image URL - Provide a URL link to the image.
  4. Description: If you have the image hosted online, you can enter the URL here.
  5. Rotation Angle - Enter the angle in degrees to rotate the image.
  6. Description: Positive values rotate the image clockwise, negative values rotate counterclockwise.

Output Values

  1. Converted Image - The rotated image in PNG format.
  2. Description: This is the image after applying the specified rotation angle.
  3. Original Image - The original image that was uploaded or linked.
  4. Description: This is the image before any rotation was applied.

Any other Instruction

  • Make sure to preview the rotated image to ensure it meets your requirements.
  • Experiment with different rotation angles to achieve the desired orientation.

Steps of Calculation

  1. Convert the uploaded image or image from URL to a format that can be processed.
  2. Rotate the image based on the specified angle.
  3. Save the rotated image in PNG format.
  4. Return the rotated image and the original image for reference.

Technical Parameters

  • upload_image, image_url, rotation

Return Values

  • Converted Image, Original Image

Example Expressions

You can use the following expressions to directly evaluate in a non-interactive manner using eva():

  1. Rotate an image by 45 degrees:
image_rotate(upload_image=example_image, rotation=45)
  1. Rotate an image from a URL by -90 degrees:
image_rotate(image_url='https://example.com/image.jpg', rotation=-90)

Click on Help icon to open the help page on a separate window.






Calculator: image_rotate, Created by: super, V#0: , Variant owner: , Link