Please support the Microsoft Office Document thumbs

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, xnview

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

Please support the Microsoft Office Document thumbs

Post by m.Th. » Sat Mar 29, 2014 9:01 am

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.

The Ascetic Experience - The best photos and texts from Holy Mountain (Athos)

- Dark Themed XnViewMP 0.90 64bit & XnView 2.00 x64 on Win7 x64 -

User avatar
xnview
Author of XnView
Posts: 31938
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Please support the Microsoft Office Document thumbs

Post by xnview » Sat Mar 29, 2014 4:15 pm

could you send me some samples, please?
Pierre.

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

Re: Please support the Microsoft Office Document thumbs

Post by m.Th. » Sat Mar 29, 2014 4:43 pm

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

Samples sent.
m. Th.

The Ascetic Experience - The best photos and texts from Holy Mountain (Athos)

- Dark Themed XnViewMP 0.90 64bit & XnView 2.00 x64 on Win7 x64 -


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

Re: Please support the Microsoft Office Document thumbs

Post by m.Th. » Sun Mar 30, 2014 9:01 am

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.

The Ascetic Experience - The best photos and texts from Holy Mountain (Athos)

- Dark Themed XnViewMP 0.90 64bit & XnView 2.00 x64 on Win7 x64 -

djcj
Posts: 53
Joined: Wed Jan 08, 2014 3:37 pm

Re: Please support the Microsoft Office Document thumbs

Post by djcj » Mon Mar 31, 2014 1:09 pm

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: 1560
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Please support the Microsoft Office Document thumbs

Post by m.Th. » Mon Mar 31, 2014 4:38 pm

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.

The Ascetic Experience - The best photos and texts from Holy Mountain (Athos)

- Dark Themed XnViewMP 0.90 64bit & XnView 2.00 x64 on Win7 x64 -

Post Reply