Skip to content

Conversation

honwhy
Copy link
Contributor

@honwhy honwhy commented Sep 14, 2025

async function compressImage(file: File) {
  const options = {
    maxSizeMB: 1,
    maxWidthOrHeight: 1920,
    useWebWorker: true,
  }
  const compressedFile = await imageCompression(file, options)
  return compressedFile
}

Copy link

github-actions bot commented Sep 14, 2025

🎊 PR Preview has been successfully built and deployed to https://doocs-md-preview-pr-990.surge.sh

@yanglbme yanglbme merged commit f67c66d into doocs:main Sep 14, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants