Page 1 of 1

Please support the Microsoft Office Document thumbs

Posted: Sat Mar 29, 2014 9:01 am
by m.Th.
As it is known (or it should be anyway) the 'x' formats (docx - Microsoft Word, xlsx - Microsoft Excel, pptx - Microsoft PowerPoint) of Microsoft Office's applications have the possibility to embed a thumbnail:
Docx.jpg
It is in fact the first page of the document saved in wmf or emf format.

The MS Office's documents are saved in OOXML format which basically is a zipped archive of "different files".

To extract the thumb, just look in the archive for a file named "thumbnail" with whatever extension. (Currently is either emf (for docx), wmf (for xlsx) and jpeg (for pptx)). Also, be advised that the thumb (the file) can be missing if the user chose when he save the file from Word/Excel/PowerPoint to NOT include the thumbnail.

The file extensions which can provide the thumbnail in this way are currently docx, xlsx, pptx

Of course, I think that it superfluous to stress the popularity of Word, Excel and PowerPoint and, hence, the importance to show the thumbs of these programs.

Re: Please support the Microsoft Office Document thumbs

Posted: Sat Mar 29, 2014 4:15 pm
by xnview
could you send me some samples, please?

Re: Please support the Microsoft Office Document thumbs

Posted: Sat Mar 29, 2014 4:43 pm
by m.Th.
xnview wrote:could you send me some samples, please?
Oh! Uh, sorry Pierre. :)

Samples sent.

Re: Please support the Microsoft Office Document thumbs

Posted: Sat Mar 29, 2014 6:00 pm
by XnTriq

Re: Please support the Microsoft Office Document thumbs

Posted: Sun Mar 30, 2014 9:01 am
by m.Th.
Wow! Our librarian is back! :)

Glad to see you again!

To Pierre: His links are different than what I posted.

This is because the links explain (at least this one) how to extract thumbnails (it they exist) from the old versions of MS Office files (doc, xls, ppt) while I explained how to extract thumbs from new versions of MS Office files (docx, xlsx, pptx).

I don't have anymore an Office earlier than Office 2007 but I know someone who has. Samples will come soon. :)

Re: Please support the Microsoft Office Document thumbs

Posted: Mon Mar 31, 2014 1:09 pm
by djcj
Can you support thumbnails of the OpenDocument format too? Implementation of that should be relatively easy, since OpenDocuments are basically ZIP archives containing XML files, and pre-processed thumbnails are stored inside at Thumbnails/thumbnail.png.

Here are some example files:
http://api.libreoffice.org/examples/bas ... actory.odt
http://api.libreoffice.org/examples/bas ... /stock.ods
http://api.libreoffice.org/examples/bas ... ifiles.odg
http://api.libreoffice.org/examples/Dev ... tation.odp

Re: Please support the Microsoft Office Document thumbs

Posted: Mon Mar 31, 2014 4:38 pm
by m.Th.
djcj wrote:Can you support thumbnails of the OpenDocument format too? Implementation of that should be relatively easy, since OpenDocuments are basically ZIP archives containing XML files, and pre-processed thumbnails are stored inside at Thumbnails/thumbnail.png.

Here are some example files:
http://api.libreoffice.org/examples/bas ... actory.odt
http://api.libreoffice.org/examples/bas ... /stock.ods
http://api.libreoffice.org/examples/bas ... ifiles.odg
http://api.libreoffice.org/examples/Dev ... tation.odp
:)

I already posted this request here: http://newsgroup.xnview.com/viewtopic.php?f=60&t=28307