browser-image-compression
browser-image-compression copied to clipboard
Image compression in web browser
I've installed browser-image-compression in my project which is powered by vitepress and I can find 'browser-image-compression.js' in the path 'node-modules/browser-image-compression/dist/', why there is still a network request to 'https://cdn.jsdelivr.net/npm/[email protected]/dist/browser-image-compression.js'? Here...
Using the latest version of Firefox on the sample website, both Main and Webworker return corrupted images. Using Edge and Chrome with the same image produces the correct results. I...
`const imageCompressionOptions = { maxSizeMB: 0.3, };` `await imageCompression( imgBlob as File, imageCompressionOptions, );` If image size is more than 2mb then I might get 400kb or 500kb size of...
…trol - Adds maxWidth and maxHeight to Options interface and docs - Updates handleMaxWidthOrHeight to apply maxWidth/maxHeight before maxWidthOrHeight - Updates README and types for new API
At the moment the library only exposes maxWidthOrHeight: number which caps the larger side of the image. Many use-cases (e.g. event‐card thumbnails, fixed-width avatars, or CMS “hero” banners) need to...
My project is based on vite 6.2.0. Today I npm intalled browser-image-compression then I try to use it. But it occured an error: `[vite] Internal server error: Failed to resolve...