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

Work around bug in createImageBitmap in Chrome #3221

Merged
merged 1 commit into from
Apr 26, 2020
Merged

Conversation

TimWolla
Copy link
Member

Google Chrome returns inconsistent sizing between img.(width|height) and
the (width|height) of the bitmap returned by createImageBitmap().

See: https://bugs.chromium.org/p/chromium/issues/detail?id=1069965

This mismatch causes Pica to corrupt the resulting image.

This commit disables resizing when the bug is detected. The behavior might
need to be re-adjusted depending on what behavior Chrome's fix will result
in.

@TimWolla TimWolla added the Bug label Apr 26, 2020
@TimWolla TimWolla requested a review from dtdesign April 26, 2020 13:10
@TimWolla TimWolla changed the base branch from master to 5.2 April 26, 2020 13:11
Google Chrome returns inconsistent sizing between `img.(width|height)` and
the (width|height) of the bitmap returned by `createImageBitmap()`.

See: https://bugs.chromium.org/p/chromium/issues/detail?id=1069965

This mismatch causes Pica to corrupt the resulting image.

This commit disables resizing when the bug is detected. The behavior might
need to be re-adjusted depending on what behavior Chrome's fix will result
in.
@TimWolla TimWolla merged commit 08c340e into 5.2 Apr 26, 2020
@TimWolla TimWolla deleted the resize-chrome-bug branch April 26, 2020 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants