-
Notifications
You must be signed in to change notification settings - Fork 30.4k
Portrait images with EXIF metadata distorted on flutter web with canvasKit renderer #81679
Copy link
Copy link
Closed
flutter/engine
#26304Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listdependency: 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: 2.0Found to occur in 2.0Found to occur in 2.0found in release: 2.2Found to occur in 2.2Found to occur in 2.2found in release: 2.3Found to occur in 2.3Found to occur in 2.3has 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 specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listdependency: 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: 2.0Found to occur in 2.0Found to occur in 2.0found in release: 2.2Found to occur in 2.2Found to occur in 2.2found in release: 2.3Found to occur in 2.3Found to occur in 2.3has 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 specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
On flutter web using the canvasKit renderer, images taken in portrait mode with EXIF data are distorted. The orientation is correct, but the width and height are not adapted to the orientation. They are always taken from the landscape orientation.
Example:
Result (CanvasKit, BoxFit.cover) :

Result (CanvasKit, BoxFit.contain) :

With HTML web-renderer (correct display without distortion):
BoxFit.contain :

BoxFit.cover:
