This is a migrated thread and some comments may be shown as answers.
Setting default crop size ...
2 Answers 12 Views
This is a migrated thread and some comments may be shown as answers.
Mark H
Top achievements
Rank 1
Mark H asked on 11 Nov 2014, 04:27 PM
I want to set the default values in the crop dialog to be the width and height of the image itself, how can I specify this?

TIA

2 Answers, 1 is accepted

Sort by
0
Mark H
Top achievements
Rank 1
answered on 11 Nov 2014, 04:35 PM
I did see this post but how can I reference the image width/height in the javascript?

TIA
M
0
Mark H
Top achievements
Rank 1
answered on 12 Nov 2014, 03:27 PM
ok got it:

var width = imageEditor.getEditableImage().get_height();
var height = imageEditor.getEditableImage().get_height();
Asked by
Mark H
Top achievements
Rank 1
Answers by
Mark H
Top achievements
Rank 1
Share this question
or