We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53d416c commit af6d0e1Copy full SHA for af6d0e1
1 file changed
Controller/UploadController.php
@@ -111,6 +111,20 @@ public function cropImageAction(Request $request
111
$tarW = (int) round($config['cropConfig']['minWidth']);
112
$tarH = (int) round($config['cropConfig']['minHeight']);
113
114
+ //Issue 36
115
+ if($x < 0)
116
+ {
117
+ $w = $w + $x;
118
+ $x = 0;
119
+ }
120
+
121
+ if($y < 0)
122
123
+ $h = $h + $y;
124
+ $y = 0;
125
126
+ //End issue 36
127
128
$forceResize = $config['cropConfig']['forceResize'];
129
// $disableCrop = $config['cropConfig']['disableCrop'];
130
0 commit comments