Merge pull request #121 from PhillipLangMartinez/feature/increase-size-images-compression

increase maxWidth image
This commit is contained in:
AlphaX-Projects 2023-02-09 17:57:47 +01:00 committed by GitHub
commit c36ec1c43d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2697,7 +2697,7 @@ class ChatPage extends LitElement {
await new Promise(resolve => { await new Promise(resolve => {
new Compressor( image, { new Compressor( image, {
quality: .6, quality: .6,
maxWidth: 500, maxWidth: 1200,
success(result){ success(result){
const file = new File([result], "name", { const file = new File([result], "name", {
type: image.type type: image.type