Roo/bootstrap/UploadCropbox.js
authoredward <edward@roojs.com>
Thu, 21 Jan 2016 05:15:03 +0000 (13:15 +0800)
committeredward <edward@roojs.com>
Thu, 21 Jan 2016 05:15:03 +0000 (13:15 +0800)
Roo/bootstrap/UploadCropbox.js

index ca99ce2..fdd022e 100644 (file)
@@ -401,7 +401,7 @@ Roo.extend(Roo.bootstrap.UploadCropbox, Roo.bootstrap.Component,  {
         
         context.drawImage(this.image.dom, x, y, cropWidth, cropHeight, centerX * -1, centerY * -1, thumbWidth, thumbHeight);
         
-        this.cropImageData = canvas.toDataURL('image/png');
+        this.cropImageData = canvas.toDataURL(this.cropType);
         
         this.fireEvent('crop', this, this.cropImageData);
     }