Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(384)

Issue 2691933007: Rotate an image bitmap in ImageLoader extension when loading detached. (Closed)

Created:
3 years, 10 months ago by yamaguchi
Modified:
3 years, 10 months ago
Reviewers:
mtomasz
CC:
chromium-reviews, oka+watch_chromium.org, rginda+watch_chromium.org, mtomasz+watch_chromium.org, yamaguchi+watch_chromium.org, fukino+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rotate an image bitmap in ImageLoader extension when loading detached. This change will fix the image orientation of the thumnail in a tooltip when dragging a JPEG file [whose EXIF orientation != 1] in the Files app. BUG=680420 TEST=browser_tests --gtest_filter=FileManagerJsTest.ImageOrientation TEST=browser_tests --gtest_filter=FileManagerJsTest.ThumbnailLoader CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2691933007 Cr-Commit-Position: refs/heads/master@{#451231} Committed: https://chromium.googlesource.com/chromium/src/+/a36f4e882b8288ff1f3e07d868ba88e19b0ef654

Patch Set 1 #

Patch Set 2 : update comment. #

Total comments: 8

Patch Set 3 : Reuse 'orientation' field to make different transformation formats exclusive. #

Total comments: 6

Patch Set 4 : Fix the rotation direction and matrix representation. #

Patch Set 5 : Update comment. #

Patch Set 6 : Fix test failure in FileManagerJsTest.ThumbnailLoader. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -10 lines) Patch
M ui/file_manager/file_manager/foreground/js/metadata/image_orientation.js View 1 2 3 4 2 chunks +52 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/metadata/image_orientation_unittest.js View 1 2 3 1 chunk +49 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/thumbnail_loader.js View 1 2 1 chunk +18 lines, -7 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/thumbnail_loader_unittest.js View 1 2 3 4 5 2 chunks +5 lines, -2 lines 0 comments Download
M ui/file_manager/image_loader/image_loader.js View 1 2 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 31 (21 generated)
yamaguchi
PTAL Will you take a look because you worked on this component before?
3 years, 10 months ago (2017-02-15 08:47:30 UTC) #6
mtomasz
Sorry for late. https://codereview.chromium.org/2691933007/diff/20001/ui/file_manager/file_manager/foreground/js/metadata/image_orientation.js File ui/file_manager/file_manager/foreground/js/metadata/image_orientation.js (right): https://codereview.chromium.org/2691933007/diff/20001/ui/file_manager/file_manager/foreground/js/metadata/image_orientation.js#newcode104 ui/file_manager/file_manager/foreground/js/metadata/image_orientation.js:104: * @param {{scaleX:number, scaleY:number, rotate90: number}} ...
3 years, 10 months ago (2017-02-16 08:53:41 UTC) #7
yamaguchi
PTAL I found and fixed a logical bug. In the older revision, EXIF Orientation=5 and ...
3 years, 10 months ago (2017-02-16 14:01:18 UTC) #14
yamaguchi
https://codereview.chromium.org/2691933007/diff/40001/ui/file_manager/file_manager/foreground/js/metadata/image_orientation.js File ui/file_manager/file_manager/foreground/js/metadata/image_orientation.js (right): https://codereview.chromium.org/2691933007/diff/40001/ui/file_manager/file_manager/foreground/js/metadata/image_orientation.js#newcode118 ui/file_manager/file_manager/foreground/js/metadata/image_orientation.js:118: orientation.b * scaleY, On 2017/02/16 14:01:18, yamaguchi wrote: > ...
3 years, 10 months ago (2017-02-16 14:03:21 UTC) #15
yamaguchi
linux_chromium_chromeos_rel_ng is failing because of FileManagerJsTest.ThumbnailLoader. Thumbnail loader is no longer expected to rotate an ...
3 years, 10 months ago (2017-02-17 02:38:42 UTC) #18
mtomasz
https://codereview.chromium.org/2691933007/diff/40001/ui/file_manager/image_loader/image_loader.js File ui/file_manager/image_loader/image_loader.js (right): https://codereview.chromium.org/2691933007/diff/40001/ui/file_manager/image_loader/image_loader.js#newcode76 ui/file_manager/image_loader/image_loader.js:76: ImageOrientation.fromRotationAndScale(request.orientation); I know the logic here already did it, ...
3 years, 10 months ago (2017-02-17 02:49:18 UTC) #19
mtomasz
lgtm
3 years, 10 months ago (2017-02-17 03:34:05 UTC) #22
yamaguchi
https://codereview.chromium.org/2691933007/diff/40001/ui/file_manager/image_loader/image_loader.js File ui/file_manager/image_loader/image_loader.js (right): https://codereview.chromium.org/2691933007/diff/40001/ui/file_manager/image_loader/image_loader.js#newcode76 ui/file_manager/image_loader/image_loader.js:76: ImageOrientation.fromRotationAndScale(request.orientation); On 2017/02/17 02:49:18, mtomasz wrote: > I know ...
3 years, 10 months ago (2017-02-17 03:44:40 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2691933007/100001
3 years, 10 months ago (2017-02-17 05:15:26 UTC) #28
commit-bot: I haz the power
3 years, 10 months ago (2017-02-17 05:43:54 UTC) #31
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/a36f4e882b8288ff1f3e07d868ba...

Powered by Google App Engine
This is Rietveld 408576698