Hello, Nate!
In the current version we have no public property for default orientation of crop rectangle. So, it is hardcoded.
But, I can offer you two workarounds:
1. You can change your
CropEffect.js in the following way:
just replace string
Code:
this._orientation = "Album";
with:
Code:
this._orientation = "Portrait";
at the definition of local variables.
2. To get rid of changing our code you may add the following code to the end of your
PhotoEditorSample.ascx:
Code:
Sys.Application.add_load(function(e, t) {
if (t.get_isPartialLoad()) return;
// Get PhotoEditorController instance.
var pe = $find();
if (!pe) return;
// Get instance of CropEffect.
var crop = pe.getEffectIdByType("Aurigma.PhotoEditor.Effects.CropEffect");
if (!crop) return;
crop = $find(crop);
if (!crop) return;
// Call private function which changes orientation.
crop._onOrientationClick();
});
Sincerely yours,
Sergey Peshekhonov.
Aurigma Technical Support Team.