File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -54,14 +54,10 @@ public function getResize()
5454
5555 public function performResize ()
5656 {
57- $ dataX = request ('dataX ' );
58- $ dataY = request ('dataY ' );
59- $ height = request ('dataHeight ' );
60- $ width = request ('dataWidth ' );
6157 $ image_path = $ this ->lfm ->setName (request ('img ' ))->path ('absolute ' );
6258
6359 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 ();
6561 event (new ImageWasResized ($ image_path ));
6662
6763 return parent ::$ success_response ;
Original file line number Diff line number Diff line change 7373 function doResize () {
7474 performLfmRequest (' doresize' , {
7575 img: $ (" #img" ).val (),
76- dataX: $ (" #dataX" ).val (),
77- dataY: $ (" #dataY" ).val (),
7876 dataHeight: $ (" #height" ).val (),
7977 dataWidth: $ (" #width" ).val ()
8078 }).done (loadItems);
You can’t perform that action at this time.
0 commit comments