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

Probleme with image base64 and tranform #1153

Open
nbao opened this issue Mar 24, 2024 · 1 comment
Open

Probleme with image base64 and tranform #1153

nbao opened this issue Mar 24, 2024 · 1 comment

Comments

@nbao
Copy link

nbao commented Mar 24, 2024

Describe the bug
user cdn cropperjs version 1.6.1
image is data:image base64
cavans with transformY is too much it must set value 0
To Reproduce
Steps to reproduce the behavior:
use simple script
window.addEventListener("DOMContentLoaded", () => { const capturedImage = document.getElementById("captured-image"); let cropper = new Cropper(capturedImage, { ready: () => { this["croppable"] = true; }, }); });

Debug with event
event.detail.x: 119.50000000000004
event.detail.y: 91.89999999999996
event.detail.width: 2150.9999999999995
event.detail.height: 1654.2
event.detail.rotate: 0
event.detail.scaleX: 1
event.detail.scaleY: 1

Screenshots
If applicable, add screenshots to help explain your problem.
Capture d'écran 2024-03-24 114021

Additional context
if transformY = 0 it's perfect

@fengyuanchen
Copy link
Owner

Please follow this example step by step: https://github.com/fengyuanchen/cropperjs?tab=readme-ov-file#example

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