---
title: "imageEditor.cropRatio Property  ActiveX/Java Uploader JavaScript"
canonical: https://www.aurigma.com/docs/us8/JA_P_J_$au_imageEditor_cropRatio.htm
product: "Upload Suite 8"
---

# imageEditor.cropRatio Property ActiveX/Java Uploader JavaScript

Supported browsers: ![Internet Explorer](https://www.aurigma.com/docs/us8/icons/ie8.png)![Firefox](https://www.aurigma.com/docs/us8/icons/firefox.png)![Google Chrome](https://www.aurigma.com/docs/us8/icons/chrome.png)![Safari](https://www.aurigma.com/docs/us8/icons/safari.png)
 
Gets or sets an aspect ratio of the crop rectangle.

## Syntax
 
```
$au.uploader({
    imageEditor: {
        //...other params...
        cropRatio: "",
        //...other params...
    }
})
```

```
$au.uploader('uploaderID').imageEditor().cropRatio(value);
value = $au.uploader('uploaderID').imageEditor().cropRatio();
```
 
### Property Value
 
Type: **String**
 
The aspect ratio of the crop rectangle. If empty string no aspect ratio is given.
 
Default value is **""**.

## Remarks
 
Crop ratio is width-to-height, thus, property value should be greater than 1 to get landscape orientation and lesser than 1 to get portrait. For example, if you set `0.75` as the property value, it will result in portrait with 3:4 aspect ratio.
 
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 PropertyActiveX/Java Uploader](https://www.aurigma.com/docs/us8/JA_P_Aurigma_ImageUploader_ImageEditor_CropRatio.htm.md)
- [ImageEditor.CropRatio PHP PropertyActiveX/Java Uploader](https://www.aurigma.com/docs/us8/JA_P_P_ImageEditor_CropRatio.htm.md)
