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

Server-side cropping #1

Open
PatrickHeneise opened this issue Mar 30, 2023 · 0 comments
Open

Server-side cropping #1

PatrickHeneise opened this issue Mar 30, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@PatrickHeneise
Copy link
Member

PatrickHeneise commented Mar 30, 2023

Suggested by @katywings

The most basic approach would be I guess, if the saveImage method would not only provide the base64 encoded image data, but also the cropping parameters. Then the user of your library can decide if they upload the base64 or just the cropping parameters to some user-made server$ function. The user could then implement the cropping on the server with sharpjs or so.

As a start, instead of returning the image with getCroppedCanvas().toDataURL(), we could return the crop properties.

@PatrickHeneise PatrickHeneise added the enhancement New feature or request label Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant