benwinding / quill-image-compress

A Quill rich text editor Module which compresses images uploaded to the editor
https://benwinding.github.io/quill-image-compress/src/demo.html
MIT License
123 stars 30 forks source link

image with transparent background get converted to white background after compress #44

Closed ashikck closed 1 year ago

benwinding commented 1 year ago

Have you tried doing this? I think that allows transparency

const quill = new Quill(editor, {
  // ...
  modules: {
    // ...
    imageCompress: {
      imageType: 'image/png', // allows transparency
    }
  }
});
ashikck commented 1 year ago

Thanks alot. Working good.