onurzorluer / react-image-file-resizer

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

0.3.5 hight is not defined : changeHeightWidth() broken #34

Closed geetee24 closed 4 years ago

geetee24 commented 4 years ago

Another typo -

code breaks when run.

index.js:1 Uncaught ReferenceError: hight is not defined at Function.value (index.js:1) at Function.value (index.js:1) at Image.t.onload (index.js:1)

a(e=Math.round(hight

to repro:

                   Resizer.imageFileResizer (
                        myBlob,
                        3000,   // maxWidth,  // is the maxWidth of the  new image
                        3000,   // maxHeight, // is the maxHeight of the  new image
                        'JPEG', // compressFormat, // is the compressFormat of the  new image
                        100,    // quality, // is the quality of the new image
                        90,      // rotation, // is the degree of clockwise rotation to apply to the image.
                        uri => {
                            //aaa
                            debugger;

                            console.log ( uri );

                            myIContentState.dailyContent.url = uri;
                        },
                        'base64',   // outputType,  // is the output type of the new image
                        3000,        // minWidth, // is the minWidth of the  new image
                        3000,        // minHeight, // is the minHeight of the  new image
                    );

                } )

seems issue in in changeHeightWidth()

onurzorluer commented 4 years ago

sorry for it. fixed :)