---
title: "ImageEditor..::.CropRatio Property HTML5/Flash Uploader ASP.NET"
canonical: https://www.aurigma.com/docs/us8/FH_P_Aurigma_ImageUploaderFlash_ImageEditor_CropRatio.htm
product: "Upload Suite 8"
---

# ImageEditor.CropRatio Property HTML5/Flash Uploader ASP.NET

Supported technologies: ![HTML 5](https://www.aurigma.com/docs/us8/icons/html5.png)
 
Gets or sets an aspect ratio of the crop rectangle.
 
**Namespace:** [Aurigma.ImageUploaderFlash](https://www.aurigma.com/docs/us8/FH_N_Aurigma_ImageUploaderFlash.htm.md)
 **Assembly:** Aurigma.ImageUploaderFlash (in Aurigma.ImageUploaderFlash.dll)
 
## Syntax
  
```csharp
public string CropRatio { get; set; }
```
 
### Property Value
 
Type: [System..String](http://msdn2.microsoft.com/en-us/library/s1wwdcbf)
 
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.
 
Another possible value is `orig`. It means that the uploader will preserve the original 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

- [ImageEditor Class](https://www.aurigma.com/docs/us8/FH_T_Aurigma_ImageUploaderFlash_ImageEditor.htm.md)
- [Aurigma.ImageUploaderFlash Namespace](https://www.aurigma.com/docs/us8/FH_N_Aurigma_ImageUploaderFlash.htm.md)
- [ImageEditor..EnableCrop](https://www.aurigma.com/docs/us8/FH_P_Aurigma_ImageUploaderFlash_ImageEditor_EnableCrop.htm.md)
- [ImageEditor..CropMinSize](https://www.aurigma.com/docs/us8/FH_P_Aurigma_ImageUploaderFlash_ImageEditor_CropMinSize.htm.md)
- [$au.imageEditor.cropRatio JavaScript Property HTML5/Flash Uploader](https://www.aurigma.com/docs/us8/FH_P_J_$au_imageEditor_cropRatio.htm.md)
- [ImageEditor.CropRatio PHP Property HTML5/Flash Uploader](https://www.aurigma.com/docs/us8/FH_P_P_ImageEditor_CropRatio.htm.md)
