New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 625944 link

Starred by 5 users

Issue metadata

Status: Verified
Owner:
Last visit > 30 days ago
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug

Blocking:
issue 640685



Sign in to add a comment

Allow to preview Drive files without full download.

Project Member Reported by oka@chromium.org, Jul 6 2016

Issue description

Labels: -M- M-54
Blocking: 614228
Blocking: -614228 640685
Labels: -M-54 M-55

Comment 5 by fukino@chromium.org, Sep 30 2016

Labels: -M-55 M-56
Labels: -m-56
Cc: mkarkada@chromium.org dhadd...@chromium.org sdantul...@chromium.org abod...@chromium.org
 Issue 756987  has been merged into this issue.
Labels: M-65
Labels: -M-65 M-66
Cc: oka@chromium.org
Owner: ----
Status: Available (was: Assigned)
Owner: sashab@chromium.org
Status: Assigned (was: Available)
Assigning to myself to investigate for M66.
Labels: CrOS-FilesApp-QuickView
Status: Started (was: Assigned)
Labels: -CrOS-FilesApp-QuickView CrOSFilesFeature-QuickView
Labels: -M-66 M-67
Labels: -Pri-2 Pri-1
Project Member

Comment 18 by bugdroid1@chromium.org, Mar 12 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/814829b1554558562dc68b15a54d17eb49e1e1a9

commit 814829b1554558562dc68b15a54d17eb49e1e1a9
Author: Sasha Morrissey <sashab@chromium.org>
Date: Mon Mar 12 04:30:31 2018

Add drive thumbnails to QuickView for all file types that have thumbnails

thumbnail should appear.

Test: Open a .PDF or .HTML file in Drive in quick view in the Files App. A
Bug:  625944 
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I06b8d498b641b3a1c5823617fbe57fa298654bf2
Reviewed-on: https://chromium-review.googlesource.com/952425
Reviewed-by: Keigo Oka <oka@chromium.org>
Commit-Queue: Sasha Morrissey <sashab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#542422}
[modify] https://crrev.com/814829b1554558562dc68b15a54d17eb49e1e1a9/ui/file_manager/file_manager/foreground/js/quick_view_controller.js

Weifang,

I've added thumbnail support for all files in Drive that provide thumbnails. Please see the attached screenshots.

This still isn't *quite* the same functionality as local files, since local videos currently can be played in quickview (see quickview_existing_video_local.png vs quickview_video_file.png) and some types of local files don't have any preview, but they do in Drive (see quickview_existing_xls_file.png vs quickview_xls_file.png). Let me know what you think.

Thanks,

Sasha
quickview_existing_functionality.png
253 KB View Download
quickview_mp3_file.png
152 KB View Download
quickview_txt_file.png
390 KB View Download
quickview_video_file.png
367 KB View Download
quickview_xls_file.png
217 KB View Download
quickview_existing_video_local.png
221 KB View Download
quickview_existing_xls_file.png
137 KB View Download
Wow, this is cool. A few questions/comments -
(1) For video files, I think the difference between local/Drive is fine where the video only can be played locally in quick view.
(2) For .xls example, just to confirm - This difference is because Drive generates the preview and we pull it down, whereas we don't have native support for .xls? Curious what the path for supporting this locally would be esp if the user had the MS Excel Android app installed?
(3) Can you confirm that .pdf files on Drive can also be previewed?

Also out of curiosity, will changes be required to the functionality if we switch out the backend with DriveFS?
(1) For video files, I think the difference between local/Drive is fine where the video only can be played locally in quick view.

Great :)

(2) For .xls example, just to confirm - This difference is because Drive generates the preview and we pull it down, whereas we don't have native support for .xls? Curious what the path for supporting this locally would be esp if the user had the MS Excel Android app installed?

Yes, that's correct. I'm also curious :) Some approaches come to mind:
  (a) Push stuff to a Drive API for thumbnailing (needs online though)
  (b) Implement more thumbnail generators locally (to match Drive support)
  (c) Some magical Android thing... Are there file managers for Android that have thumbnails for custom file types? Could be something to look into

(3) Can you confirm that .pdf files on Drive can also be previewed?

Ooh yup, sorry about that. Just the front page is previewed (as it's the thumbnail). Attached a screenshot :)

(4) Also out of curiosity, will changes be required to the functionality if we switch out the backend with DriveFS?

(Just asked sammc@) There is an API in DriveFS to request a thumbnail, so we could just use that and there would be no UI change. :)
pdf_screenshot.png
227 KB View Download
Status: Fixed (was: Started)
This is fixed. There are multiple approaches to getting complete consistency, but we can discuss them in a future bug. Weifang - feel free to re-open if there's still issues with the solution. :)
Looks good - Thanks for the responses sashab@!
Status: Verified (was: Fixed)
Chrome OS 10575.26.0, 67.0.3396.31

Sign in to add a comment