Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enableExif is not currently working on crop #42

Open
julianvk opened this issue Sep 13, 2018 · 1 comment
Open

enableExif is not currently working on crop #42

julianvk opened this issue Sep 13, 2018 · 1 comment

Comments

@julianvk
Copy link

Currently uploading an image from a phone camera that then gets passed to croppie, croppie is handling correctly until I crop the image.

here's my component:
Croppie is getting called on main.js

Below is inside a single component ImageCrop.vue

  <vue-croppie
        ref=croppieRef
        :enableExif="true"
        :enableOrientation="false"
        :viewport="{ width: 375, height: 375, type: 'square' }"
        @result="result">
    </vue-croppie>
  data () {
    return {
      url: this.$store.state.payload.image,
      cropped: null,
      options: {
        format: 'jpg',
        circle: false,
        size: 'viewport'
      }
    }
  },
  mounted () {
    this.$refs.croppieRef.bind({
      url: this.url
    })
  },
  methods: {
    crop () {
      this.$refs.croppieRef.result(this.options, (output) => {
        console.log(output)
        this.cropped = output
      })
    },
    result (output) {
      console.log('result: ', this.cropped)
      this.cropped = output
    }
  }

Any help would be greatly appreciated, a bit stumped here.

@dobromir-hristov
Copy link
Collaborator

So what is the issue here? You never explained what problem you are experiencing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants