kartoteket / vue-image-upload-resize

A simple vue-component for client-side image upload with resizing
MIT License
175 stars 54 forks source link

autoRotate prop is non-reactive #53

Open gorbypark opened 4 years ago

gorbypark commented 4 years ago

Setting the autoRotate prop after an image has been selected does not produce the expected outcome (at least for my use case!) Neither the preview nor the base64 output change when :autoRotate changes. With Chrome auto rotating photos now, sometimes the image-uploader component is rotating already rotated photos, so it would be nice if the user sees in the preview that the photo isn't oriented correctly, they could toggle autoRotate off.

<image-uploader
  @input="setOutput"
  :debug="2"
  :quality="0.7"
  :autoRotate="attemptAutoRotate"
  outputFormat="base64"
  class="fileinput2"
  :preview="true"
  accept=".jpg"
/>
Attempt to rotate: <v-switch v-model="attemptAutoRotate">Auto rotate</v-switch>
Totobriac commented 4 years ago

Chrome auto rotating photos now, Wish I had read you comment before I spent 3 hours debugging my app 👍