Fengyuan Chen
Fengyuan Chen
Maybe you can try to use the native [`Reflect.construct()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/construct) method, e.g.: ```js import Compressor from 'compressorjs'; // const compressor = new Compressor(file, options); const compressor = Reflect.construct(Compressor, [file, options]); ```
@uzianhar I'm sorry. I have no idea about your situation.
Cropper.js 2 uses native web components solution. You can use it just like HTML. Please follow the [Guide](https://fengyuanchen.github.io/cropperjs/v2/guide.html#usage) page, there are 3 ways to use it. **Q: Where are the...
@miklosz Maybe you can try to initialize the Cropper **after** all things are ready (loaded or prepared).
@miklosz You might have to help yourself because I don't have these devices for debugging. > A possible case: The page was not loaded completely when you click the `Get...
You can try to load the image with [JavaScript-Load-Image](https://github.com/blueimp/JavaScript-Load-Image) before using Cropper.js.
估计还是浏览器内存上限问题,实在不行,可以考虑上传到服务端进行压缩。
A workable workaround from #246 for Windows users: 1. Open `C:\Program Files\nodejs\node_modules\corepack\dist\lib\corepack.cjs` file. 2. Search this line: `await import_fs2.default.promises.rename(tmpFolder, installFolder)`. If not found, try to search `rename(tmpFolder, installFolder)`. 3. Add...
Merged and released in v1.2.0.