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
- Upload an image or provide the image URL.
- Enter the rotation angle in degrees.
- Click on the "Rotate Image" button to process the image.
Input Values
- Upload Image - Select an image file from your device.
- Description: This is the image that you want to rotate.
- Image URL - Provide a URL link to the image.
- Description: If you have the image hosted online, you can enter the URL here.
- Rotation Angle - Enter the angle in degrees to rotate the image.
- Description: Positive values rotate the image clockwise, negative values rotate counterclockwise.
Output Values
- Converted Image - The rotated image in PNG format.
- Description: This is the image after applying the specified rotation angle.
- Original Image - The original image that was uploaded or linked.
- 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
- Convert the uploaded image or image from URL to a format that can be processed.
- Rotate the image based on the specified angle.
- Save the rotated image in PNG format.
- 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():
- Rotate an image by 45 degrees:
image_rotate(upload_image=example_image, rotation=45)
- 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.