How To Change The Aspect Ratio Of Jcrop Widget.

This is my jcrop widget

I want to change the aspect ratio of tracker to auto. Currently it is appearing in square.


<?php

            $ext = explode('.', Yii::app()->user->PROFILE_IMAGE);

            $this->widget('ext.jcrop.EJcrop', array(

            //

            // Image URL

            'url' => Yii::app()->baseUrl.'/upload/'.Yii::app()->user->PROFILE_IMAGE.'?'.time(),

            //

            // ALT text for the image

            'alt' => 'Crop This Image',

            //

            // options for the IMG element

            'htmlOptions' => array('id' => 'imageId', 'width'=>500, 'height'=>500),

            //

            // Jcrop options (see Jcrop documentation)

            'options' => array(

                'minSize' => array(50, 50),

                'aspectRatio' => 1,

                'onRelease' => "js:function() {ejcrop_cancelCrop(this);}",

            ),

            // if this array is empty, buttons will not be added

            'buttons' => array(

                'start' => array(

                    'label' => 'Edit',

                    'htmlOptions' => array(

                        'class' => 'edit-thumbnail'

                    )

                ),

                'crop' => array(

                    'label' => 'Save',

                'htmlOptions'=>array('class'=>'crop-thumbnail')

                ),

                'cancel' => array(

                    'label' => 'Cancel',

                    'htmlOptions'=>array('class'=>'cancel-thumbnail')

                )

            ),

            // URL to send request to (unused if no buttons)

            'ajaxUrl' => $this->createUrl('setting/imageCrop'),

            //

            // Additional parameters to send to the AJAX call (unused if no buttons)

            'ajaxParams' => array('ext' => $ext[1]),

        ));

I solved it removing the code


'aspectRatio' => 1,