## Aurigma Image Uploader 7.0.28

# ImageEditor.CropRatio Property

- Collapse All Sections
- See Also
- Language Filter ( all languages )
- Supported browsers:

Gets or sets an aspect ratio of the crop rectangle.

## Syntax

### PHP

    public function getCropRatio() {
    }

    public function setCropRatio($value) {
    }

### Property Value

Type: string

The aspect ratio of the crop rectangle. If empty string no aspect ratio is given.

Default value is "".

## Remarks

You can restrict users from changing the aspect ratio by adding

    "; fixed"

to the value. For example, the following value:

    "4:3; fixed"

sets the 4:3 aspect ratio, which cannot be chaged by users.

## See Also

### Reference

- Aurigma.ImageUploader.ImageEditor.CropRatio ASP.NET Property
- $au.imageEditor.cropRatio JavaScript Property