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

Safari 18+ incorrect cropping #292

Open
GrekStalker69 opened this issue Mar 6, 2025 · 0 comments
Open

Safari 18+ incorrect cropping #292

GrekStalker69 opened this issue Mar 6, 2025 · 0 comments

Comments

@GrekStalker69
Copy link

Hello there!

The issue recently arised where the cropper output image wasn't correct. Package version is 1.11.7(latest for vue2).

In short, when image is cropped with "empty margins" around it, actual output has top and left areas transparent as expected, but right and bottom are getting cut. As if incorrect width/height got applied to the canvas. Images should show the issue:

Source:
Image

Cropping:
Image

Output(had to resize it, because actual output is too big to be uploaded here, but only resizing, no cropping):
Image

Issue seems to only reproduce on safari/chrome/web-view on ios18 + Safari 18.1 (20619.2.8.11.10) for macos

Couldn't make it(quasar specifically) run in codesandbox, and whole vue component doesn't seem to display properly, so here's only the piece with cropper usage:

<cropper
        v-if="cropImageUrl"
        class="cropper"
        :src="cropImageUrl"
        :stencil-props="{}"
        :imageRestriction="'none'"
        @change="change"
        ref="cropper"
    />

I'll try to setup it in codesandbox tomorrow when team members with said devices are available.

Let me know if I can help in any way.

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

1 participant