Repository navigation
Closed
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: imagesLoading, displaying, rendering imagesLoading, displaying, rendering imagesc: renderingUI glitches reported at the engine/skia or impeller rendering levelUI glitches reported at the engine/skia or impeller rendering leveldependency: skiaSkia team may need to help usSkia team may need to help use: web_canvaskitCanvasKit (a.k.a. Skia-on-WebGL) rendering backend for WebCanvasKit (a.k.a. Skia-on-WebGL) rendering backend for Webengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 1.26Found to occur in 1.26Found to occur in 1.26has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyWeb applications specifically
Description
When using ResizeImage, the resizing seems to be completed ignored on web.
General steps to Reproduce
- Use
ResizeImage. - Run using `flutter run -d chrome --web-renderer canvaskit
Expected results: images get resized down to the specified size.
Actual results: the resizing is ignored on web.
This happens on the latest Flutter version:
doctor
[✓] Flutter (Channel master, 1.26.0-2.0.pre.150, on macOS 11.1 20C69 darwin-x64,
locale en-US)
• Flutter version 1.26.0-2.0.pre.150
• Framework revision 5b1aa60a46 (4 hours ago), 2020-12-29 12:06:41 -0800
• Engine revision b304148d46
• Dart version 2.12.0 (build 2.12.0-179.0.dev)
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Connected device (2 available)
• macOS (desktop) • macos • darwin-x64 • macOS 11.1 20C69 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 87.0.4280.88
Detailed steps
I have no widget example for this but use ResizeImage directly. Because the setup is a little more involved, it would be super annoying to copy-paste everything into the GitHub text field.
Instead, I have some easy steps that directly use the code from my repo:
- Make sure you are on the
masterchannel and that you have runflutter config --enable-webandflutter config --enable-macos(orflutter config --enable-windowson Windows). git clone https://github.com/creativecreatorormaybenot/funvas.gitcd funvas/funvas_demogit checkout 332d84045c5e03ff850f0b999921d7c6d49b88a9- Now, follow the step below for both
flutter run -d chrome --web-renderer canvaskit --no-sound-null-safetyandflutter run -d macos --no-sound-null-safety(or-d windows) to see the difference. - Run the app (on web and on desktop) and press the left arrow button once in that app.
| Web | Desktop |
|---|---|
![]() |
![]() |
As you can see on dekstop, the overlayed image is scaled down (to 245x245), however, on web, it will not be scaled down and stay the same size as the background image (420x420).
Reacted by SoftWyer, GP4cK, Mboya Michael and Taras Tataryn
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: imagesLoading, displaying, rendering imagesLoading, displaying, rendering imagesc: renderingUI glitches reported at the engine/skia or impeller rendering levelUI glitches reported at the engine/skia or impeller rendering leveldependency: skiaSkia team may need to help usSkia team may need to help use: web_canvaskitCanvasKit (a.k.a. Skia-on-WebGL) rendering backend for WebCanvasKit (a.k.a. Skia-on-WebGL) rendering backend for Webengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 1.26Found to occur in 1.26Found to occur in 1.26has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyWeb applications specifically


Activity
TahaTesser commentedon Dec 30, 2020
Hi @creativecreatorormaybenot
Thanks for filing the issue, I can reproduce it using the steps on the web.
flutter doctor -v
yjbanov commentedon Feb 4, 2021
Corresponding Skia issue: https://bugs.chromium.org/p/skia/issues/detail?id=11275
yjbanov commentedon Feb 24, 2021
Unassigning for now as this is blocked on Skia API.
HayesGordon commentedon Feb 21, 2022
Hi 👋 , any update on this? I see that the Skia issue status is now marked as done?
mboyamike commentedon May 2, 2022
Also asking, any update on this? Just faced it
ozz-rjq commentedon May 17, 2022
having the same issue
harryterkelsen commentedon Sep 26, 2022
This issue is fixed now
github-actions commentedon Oct 10, 2022
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.