Skip to content

Files: thumbnails #205

Closed
Closed

Description

@jancborchardt

It would be the bomb to have small file previews as thumbnails instead of just useless file type icons. It’s probably a ton of work but would supercharge the Files app. The list items could also just be a bit bigger, or we make a separate list & grid view (although I think we can kick ass with having one great view).

Activity

  1. karlitschek commented on Nov 1, 2012

    @karlitschek
    Contributor

    I want to work on a general preview lib that we can use to generate thumbnails

  2. DeepDiver1975 commented on Nov 1, 2012

    @DeepDiver1975
    Contributor

    @jancborchardt @karlitschek
    slightly off-topic: what about file viewing?
    as off today we have different presentation for different files e.g. for pictures/photos we popup a lightbox.
    odf and pdf fade-in and replace the files list - but both have a different look and feel (actually my fault ;-) )

    what about unifying the look and feel of the file viewer?

  3. jancborchardt commented on Nov 1, 2012

    @jancborchardt
    ContributorAuthor

    @DeepDiver1975 good question: ODF and PDF, or any view-only things should not replace the file list. Rather use this lightbox-style similar to the images (without white border though) and darken the background.

  4. jancborchardt commented on Dec 4, 2012

    @jancborchardt
    ContributorAuthor

    Duplicate of #86, closing.

  5. happysysadm commented on Jan 29, 2013

    @happysysadm

    I don't know it this relevant to this issue, but I wonder if it is possible for OC to generate thumbs in 'offline mode' when a folder containing pictures is shared to someone else.

    What I see is that thumbs are generated for each user at the time of browsing the folder. Which adds a delay to the navigation and make people think that the share doesn't work or that it is very slow.

    Also, why not to have a unique thumbnail for a picture instead of one per user?

    Thanks in advance
    Manny

  6. georgehrke commented on Apr 22, 2013

    @georgehrke
    Contributor

    open tasks:

    • delete thumbnails if files change.
    • make it work with external filesystem files.
    • movies support
    • pdf support
    • mp3/id3 support
    • more file types

    Edit:

    • stream a few mb of remote storage to local cache
    • unknown backend
  7. georgehrke commented on May 17, 2013

    @georgehrke
    Contributor

    @jancborchardt What kind of information should preview.png show if the mimetype is unknown or all attempts to generate a preview fail?

  8. georgehrke commented on May 29, 2013

    @georgehrke
    Contributor

    @jancborchardt @karlitschek What do you think about syntax highlighting for text based files?

  9. karlitschek commented on May 29, 2013

    @karlitschek
    Contributor

    @georgehrke Previews of Test files is definitely important. sSntax highlighting would be neat but this is mainly for developers useful who have sourcecode in their ownCloud. If easily doable, why not. More important would be .doc and .odt if you ask me. ;-) Yes. This is not easly ;-)

  10. georgehrke commented on May 29, 2013

    @georgehrke
    Contributor

    Previews of Test files is definitely important.

    That's already implemented - https://github.com/owncloud/core/blob/oc_preview/lib/preview/txt.php

    If easily doable, why not.

    AFAIK there are only two libs and both are not suitable for this case, because they return pure HTML code ... (Geshi and Hyperlight)

    More important would be .doc and .odt if you ask me

    Absolutely, I'll take a look

  11. georgehrke commented on May 30, 2013

    @georgehrke
    Contributor

    I did some research and the best solution seems to be PHPDocX. There is an LGPL licensed community edition of it. It seems to be very easy to generate pdf files from docx. We could use the PDF preview backend to generate previews of the documents.

    <?php
    
    /**
     * Transform DOCX into PDF
     *
     * @category   Phpdocx
     * @package    examples
     * @subpackage easy
     * @copyright  Copyright (c) Narcea Producciones Multimedia S.L.
     *             (http://www.2mdc.com)
     * @license    LGPL
     * @version    3.0
     * @link       http://www.phpdocx.com
     * @since      File available since Release 3.0
     */
    require_once '../../classes/TransformDoc.inc';
    require_once '../../classes/CreateDocx.inc';
    
    $docx = new CreateDocx();
    
    $document = new TransformDoc();
    $document->setStrFile('../files/Text.docx');
    $document->generatePDF();
  12. 25 remaining items

  13. georgehrke commented on Jun 26, 2013

    @georgehrke
    Contributor

    In the new files app, those paths will be generated in the browser, right?

    If the new files app will be released with oC 6, there is no need to implement it (twice).

  14. raghunayyar commented on Jun 26, 2013

    @raghunayyar
    Contributor

    @georgehrke mostly yes, I will start working on it this August. :)

  15. ptsefton commented on Jun 26, 2013

    @ptsefton

    Our university is looking adopting oC for use with both research data and teaching resources, to support this, we have some basic requirements, which we would be happy to contribute code to implementing if they fit with community thinking. We're working on this in an app called Cr8it (crate-it).

    • There should be web-ready views of as many file types as possible.
      • Thumbnails for images for online viewing, and at various sizes for export to EPUB, HTML etc.
      • HTML versions of documents, including Word, OpenDocmunent, spreadsheets, presentations etc.
      • Versions of video at various sample rates and formats for use in different situations
      • Pluggable support for other formats, eg scientific data formats and speciallist image formats
    • By web-ready views, I mean:
      • Thumbnails for immediate viewing
      • HTML-wrapped snippets that can be combined together into EPUB books, or blogged etc
      • PDF versions of documents

    It is important, if we're trying to support all that, to make sure that these views can be generated by a background process, and potentially farmed-out to multiple machines, there is no way we can ask users to wait while a video is re-formatted.

    So what we'd like to see (and help with) would be:

    • A way to register file-conversion processes and to make this configurable so admins can choose which views to support and flexible so users can see the views they want to see
    • Some kind of dispatching system possibly using message queues to manage conversion
    • A standard way to store various derived versions of files and make them available to any app
    • One version of each view per file

    Out short term approach has been to use some existing software with which we are familiar. We are using a repository system called The Fascinator to store the web-ready-views - this has a queue system as discussed above. The repository is using another open source package, Integrated Content Environment (ICE) to do many of the file conversions. Neither of these are packaged or easy to install, we're working on better instructions.

    ICE uses open-office to create PDF and HTML versions of office documents. This is not perfect but it does a better job than most packages. We are working on a version that can use a Sharepoint server to create better versions of Word documents as well. The current test version of ICE takes a markdown-like approach to generating HTML, throwing out most formatting and looking for headings, indent, bullets and numbers to produce clean HTML5 (and soon XHTML for use in EPUB). ICE is a major code base created by the University of Southern Queensland, but they have more or less abandoned the open source version but it does have a lot work in it to deal with all sorts of conversion quirks that may be worth keeping.

    So, if there is an emerging architecture for any of this we'd be really happy to contribute to implementing it.

  16. karlitschek commented on Jun 28, 2013

    @karlitschek
    Contributor

    @ptsefton Thanks a lot for your suggestions. Contributions here are very welcome. The architecture you suggested sounds very advanced and is perhaps suitable for a version 2 of the thumbnails system. At the moment we should get the library @georgehrke worked on merged because we need this for other ownCloud 6 features very soon.
    Pull requests are very welcome of course :-)

  17. georgehrke commented on Jul 3, 2013

    @georgehrke
    Contributor

    Are previews necessary in the trash bin app?

  18. jancborchardt commented on Jul 5, 2013

    @jancborchardt
    ContributorAuthor

    @georgehrke yes, previews everywhere. Especially for deleted files it’s important to quickly see which files are which, so you know which you want to restore.

  19. Niduroki commented on Jul 30, 2013

    @Niduroki

    #4022 deals with this?

  20. georgehrke commented on Jul 30, 2013

    @georgehrke
    Contributor

    #4022 deals with this?

    Yes

  21. Niduroki commented on Aug 31, 2013

    @Niduroki

    Fixed with #4022

  22. jancborchardt commented on Sep 4, 2013

    @jancborchardt
    ContributorAuthor

    To quote myself from the original issue: »It’s probably a ton of work but would supercharge the Files app.«

    I guess @georgehrke agrees with the first part. I definitely think the Files app is supercharged.

    🚀

  23. locked as resolved and limited conversation to collaborators on Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions