Skip to content

Images are rendered at low quality at master branch #76513

@narumi147

Description

@narumi147

Steps to Reproduce

  1. create a widget to show one image(asset network images are all ok).
  2. run app with stable and master branch of flutter
  3. the image quality of stable branch is higher than master branch
  • left: built with some early version of flutter 1.26 (master), maybe one month ago
  • right: built with latest master branch 1.27.0-5.0.pre.90

Screen Shot 2021-02-22 at 09 39 47

(the shadow is because of macOS application window)

We can see the left one looks more smooth and text in image is more clear, all settings for Image widget are left default. This happens on all platforms including macOS/windows/android.

I checked these two months' commits of flutter/lib/src/widgets/image.dart, the only change maybe related is filterQuality. But changing to FilterQuality.high takes no sense.

flutter doctor -v
[✓] Flutter (Channel master, 1.27.0-5.0.pre.90, on Mac OS X 10.15.7 19H512
    darwin-x64, locale en-CN)
    • Flutter version 1.27.0-5.0.pre.90 at /Users/narumi/Library/flutter-master
    • Framework revision 371dd87aa0 (2 days ago), 2021-02-20 13:11:58 +0100
    • Engine revision b793775d2a
    • Dart version 2.13.0 (build 2.13.0-52.0.dev)
    • Pub download mirror https://mirrors.tuna.tsinghua.edu.cn/dart-pub
    • Flutter download mirror https://mirrors.tuna.tsinghua.edu.cn/flutter

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/narumi/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Users/narumi/Library/Application
      Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.6953283/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.2, Build version 12B45b
    • CocoaPods version 1.10.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio
    • Android Studio at /Users/narumi/Library/Application
      Support/JetBrains/Toolbox/apps/AndroidStudio/ch-1/202.7094744/Android
      Studio 4.2 Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] Android Studio (version 4.1)
    • Android Studio at /Users/narumi/Library/Application
      Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.6953283/Android
      Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.53.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.19.0

[✓] Connected device (3 available)
    • iPhone 12 Pro (mobile) • 9F3B098B-85CD-4BBA-BC49-ABA7752723E7 • ios
      • com.apple.CoreSimulator.SimRuntime.iOS-14-2 (simulator)
    • macOS (desktop)        • macos                                • darwin-x64
      • Mac OS X 10.15.7 19H512 darwin-x64
    • Chrome (web)           • chrome                               •
      web-javascript • Google Chrome 88.0.4324.182

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: imagesLoading, displaying, rendering imagesa: qualityA truly polished experiencec: regressionIt was better in the past than it is nowc: renderingUI glitches reported at the engine/skia or impeller rendering levelengineflutter/engine related. See also e: labels.found in release: 1.27Found to occur in 1.27frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions