richdocuments icon indicating copy to clipboard operation
richdocuments copied to clipboard

Previews for the documents

Open jancborchardt opened this issue 9 years ago • 2 comments

Is it planned/possible to have previews of the documents shown in the app? Cause right now it’s just a grid of giant icons – would be cool to make that a bit nicer. :)

The idea would be to still have the grid, but a big preview and then the filetype icon a bit smaller in the corner.

cc @timar @pranavk and @LukasReschke for security

jancborchardt avatar Jul 26 '16 17:07 jancborchardt

We have a lool/convert-to API[1] which can give you converted documents in any other format. So if you do a format=png there, we get the png of the first page of the document. I think that can be used here as previews ?

Please note that there was a regression in that API, so it wasn't converting the documents properly, but it has been fixed recently, so it works in current master, collabora-online-1-0 branches now.

[1] https://gerrit.libreoffice.org/gitweb?p=online.git;a=blob;f=loolwsd/reference.txt;h=bc0cbe8559a01789747adfdc2fdbcb47af3fb3b4;hb=HEAD

pranavk avatar Jul 27 '16 17:07 pranavk

Yeah, that would be quite awesome! PNG of the first page is exactly what we need.

jancborchardt avatar Jul 27 '16 21:07 jancborchardt