Skip to content

Commit

Permalink
Fix(web): Increase image quality of FileUploader image preview
Browse files Browse the repository at this point in the history
  * allow larger base64 image to increase quality of previewed image

refs #DS-1039
  • Loading branch information
literat committed Nov 2, 2023
1 parent 5f242cb commit fb17044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web/src/js/FileUploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class FileUploader extends BaseComponent {
if (hasImagePreview && isFileImg) {
AttachmentSvgIcon?.remove();
AttachmentPreviewImage?.querySelector('img')?.setAttribute('alt', file.name);
image2Base64Preview(file, 100, (compressedDataURL) =>
image2Base64Preview(file, IMAGE_PREVIEW_BASE64_MAX_WIDTH, (compressedDataURL) =>
AttachmentPreviewImage?.querySelector('img')?.setAttribute('src', compressedDataURL),
);
} else {
Expand Down

0 comments on commit fb17044

Please sign in to comment.