Skip to main content

VIUCraft Documentation

Image Operations

On This Page

Complete reference for all supported image transformations.

Resize

Resize an image to specified dimensions.

ParameterTypeRequiredDescription
widthintegerYesTarget width in pixels
heightintegerYesTarget height in pixels
Code
/resize-300-200/image.jpg

Crop

Crop a region from the image.

ParameterTypeRequiredDescription
xintegerYesX coordinate of crop origin
yintegerYesY coordinate of crop origin
widthintegerYesCrop width in pixels
heightintegerYesCrop height in pixels
Code
/crop-10-10-400-300/image.jpg

Rotate

Rotate the image by a specified angle.

ParameterTypeRequiredDescription
angleintegerYesRotation angle (0-360 degrees)
Code
/rotate-90/image.jpg

Grayscale

Convert the image to grayscale. No parameters required.

Code
/grayscale/image.jpg

Brightness

Adjust image brightness.

ParameterTypeRequiredDescription
levelintegerYesBrightness adjustment (-100 to 100)
Code
/brightness-50/image.jpg

Contrast

Adjust image contrast.

ParameterTypeRequiredDescription
levelintegerYesContrast adjustment (-100 to 100)
Code
/contrast-30/image.jpg

Was this helpful?

On This Page