Please support the Microsoft Office Document thumbs

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, helmut, xnview

Post Reply
User avatar
m.Th.
XnThusiast
Posts: 1663
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Please support the Microsoft Office Document thumbs

Post 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.
m. Th.

- Dark Themed XnViewMP 1.6 64bit on Win11 x64 -
User avatar
xnview
Author of XnView
Posts: 43444
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Please support the Microsoft Office Document thumbs

Post by xnview »

could you send me some samples, please?
Pierre.
User avatar
m.Th.
XnThusiast
Posts: 1663
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Please support the Microsoft Office Document thumbs

Post by m.Th. »

xnview wrote:could you send me some samples, please?
Oh! Uh, sorry Pierre. :)

Samples sent.
m. Th.

- Dark Themed XnViewMP 1.6 64bit on Win11 x64 -
User avatar
m.Th.
XnThusiast
Posts: 1663
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Please support the Microsoft Office Document thumbs

Post 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. :)
m. Th.

- Dark Themed XnViewMP 1.6 64bit on Win11 x64 -
djcj
Posts: 60
Joined: Wed Jan 08, 2014 3:37 pm

Re: Please support the Microsoft Office Document thumbs

Post 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
User avatar
m.Th.
XnThusiast
Posts: 1663
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Please support the Microsoft Office Document thumbs

Post 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
m. Th.

- Dark Themed XnViewMP 1.6 64bit on Win11 x64 -
Post Reply