File tree 2 files changed +1
-7
lines changed
2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -54,14 +54,10 @@ public function getResize()
54
54
55
55
public function performResize ()
56
56
{
57
- $ dataX = request ('dataX ' );
58
- $ dataY = request ('dataY ' );
59
- $ height = request ('dataHeight ' );
60
- $ width = request ('dataWidth ' );
61
57
$ image_path = $ this ->lfm ->setName (request ('img ' ))->path ('absolute ' );
62
58
63
59
event (new ImageIsResizing ($ image_path ));
64
- Image::make ($ image_path )->resize ($ width , $ height )->save ();
60
+ Image::make ($ image_path )->resize (request ( ' dataWidth ' ), request ( ' dataHeight ' ) )->save ();
65
61
event (new ImageWasResized ($ image_path ));
66
62
67
63
return parent ::$ success_response ;
Original file line number Diff line number Diff line change 73
73
function doResize () {
74
74
performLfmRequest (' doresize' , {
75
75
img: $ (" #img" ).val (),
76
- dataX: $ (" #dataX" ).val (),
77
- dataY: $ (" #dataY" ).val (),
78
76
dataHeight: $ (" #height" ).val (),
79
77
dataWidth: $ (" #width" ).val ()
80
78
}).done (loadItems);
You can’t perform that action at this time.
0 commit comments