title: How to fix IE error when save photo edited with Konva?
body: <p>I am trying to make a photo editor, do add some squares on images with Konva JS. I was able to get things done for all the browsers, but unfortunately IE cannot figure out. When I'm trying to save edited image, seems like it ignore everything from Konva (the squares) and more than that is stretching the image. I've asked a Konva moderator if has support for IE, and he told me that the library has compatibility with IE.</p>
  
  <p>The app is made in Laravel and the request for saving is sent in controller by Ajax</p>
  
  <p>Javascript:</p>
  
  <pre><code> function saveInCanvas () {
              destroyTransformer();
              destroyPreview();
              html2canvas(element, {
                  onrendered: function (canvas) {
                      $("#previewImage").append(canvas);
                      getCanvas = canvas;
                      var keyFrameId = $('#current-frame').attr('attr');
                      destroyTransformer();
  
                      dataURL = getCanvas.toDataURL();
                      $.ajax({
                          type: "POST",
                          url: "{{ route('save_debrand') }}",
                          data: {
                              survey_id: {{ $survey-&gt;id }},
                              imgBase64: dataURL,
                              keyFrameId: keyFrameId,
                              _token: "{{ csrf_token() }}",
                          },
                          success: function(response){
                              debrandingPreviousNextImage("imageSaved");
                          }
                      });
                  }
              });
          };
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>public function ajxSaveEdited(Request $request){
  
      $image    = Image::make($request-&gt;get('imgBase64'));
      $filename = uniqid().'.jpg' ;
      $file     = public_path('storage/surveys/'.$filename);
      $image-&gt;save($file);
  </code></pre>
  
  <p>}</p>
  
  <p>Does IE has something particular for getting image from canvas?
  Thank you!</p>