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

Pass right data to filepond preview from own image editor. #273

Closed
phlegx opened this issue Mar 22, 2019 · 1 comment
Closed

Pass right data to filepond preview from own image editor. #273

phlegx opened this issue Mar 22, 2019 · 1 comment

Comments

@phlegx
Copy link

phlegx commented Mar 22, 2019

Hi!

Summary

I have opened an issue on pqina/filepond-plugin-image-edit#1 because there are many things unclear to me how to use an own editor with filepond.

How to reproduce

I use the latest versions of filepond and its plugins.
I have followed this instructions plugins/image-edit to setup filepond. Assigned also the imageEditEditor property. It is unclear what type of data I have to pass to output for onconfirm: (output) => {}.

What I want to do

I want to use cropperjs as editor.

data: {
  crop: {
    center: { // center relative to what? Pixel, percentage?
      x: .5,
      y: .5
    },
    flip: { // this is clear and works for me
      horizontal: false,
      vertical: false
    },
    zoom: 1,
    rotation: 0, // data range? -180 to 180 or 0 to 360?
    aspectRatio: null
  }
}

Any help is appreciated! Thx

@rikschennink
Copy link
Collaborator

Please don't open multiple issues. I've read your question and have simply had no time to respond yet.

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