ericnograles / browser-image-resizer

A tiny browser-based library to downscale and/or resize images using canvas
MIT License
98 stars 42 forks source link

autoRotate: false fails #24

Closed chriscdn closed 4 years ago

chriscdn commented 4 years ago

Setting autoRotate: false prevents the promise resolve function from being called.

ericnograles commented 4 years ago

@chriscdn I unfortunately was unable to replicate using this code:

    async onChange(event) {
      let image = await readAndCompressImage(event.target.files[0], { autoRotate: false });
      let base64Image = await this.convertToBase64(image);
      this.image = base64Image;
    }

I'm locally testing on a macOS environment, and confirmed functionality on Chrome, Safari, and Firefox.

Can you send me details of your local environment? Thanks!

chriscdn commented 4 years ago

I regret I don't recall the test case or what I saw when I reported this. Apologies for wasting your time.