onurzorluer / react-image-file-resizer

Resize Local Images with React 🌄 🌅
MIT License
317 stars 41 forks source link

Does this work at all? #27

Closed miliu99 closed 4 years ago

miliu99 commented 4 years ago

I tried it with all default and it doesn't seem to have changed anything. What did I miss?

Here is my code:

    let { width=300, height=300, compressFormat="JPEG", quality=50, rotation=0, outputType='base64' } = {}
    Resizer.imageFileResizer(file, width, height, compressFormat, quality, rotation, result => {
        console.log(result)
    }, outputType)
miliu99 commented 4 years ago

Sorry, it's my fault...