Thumbnails for MS Office?

919 views
Skip to first unread message

LeaUK

unread,
Mar 5, 2012, 10:07:57 AM3/5/12
to resour...@googlegroups.com

 

Hi All

 

Having resolved my general thumbnail issue I'm now seeking guidance in how to create auto thumbnails for MS Office docs.  I'm confused whether this feature is supported in Resourcespace or not.  The wiki says it is, but perhaps my Office docs need to be generated with an inbuilt thumbnail/preview for this feature to function?

 

Any thoughts much welcomed.

 

Cheers

Lea

LeaUK

unread,
Mar 5, 2012, 10:57:15 AM3/5/12
to resour...@googlegroups.com
Uhm, I've read this thread https://groups.google.com/forum/?fromgroups#!searchin/resourcespace/thumbnails$20office/resourcespace/tqVIFoCaPQ0/davfeYU3U7MJ with much interest...it it still applicable with the latter Excif versions (I'm running 8.7.7.0)?
 
PHP version 5.3.10 config:C:\PHP\php.ini OK
MySQL version 5.5.20 (client-encoding: latin1) OK
GD version bundled (2.0.34 compatible) OK
PHP.INI value for 'memory_limit' 2000M OK
PHP.INI value for 'post_max_size' 1000M OK
PHP.INI value for 'upload_max_filesize' 1000M OK
Write access to C:\inetpub\wwwroot\resourcespace\include/../filestore OK
Blocked browsing of 'filestore' directory OK
ImageMagick Version: ImageMagick 6.7.5-2 2012-02-05 Q16 http://www.imagemagick.org OK
FFmpeg ffmpeg version N-37586-g6833fe4 OK
Ghostscript OK
EXIF extension OK
Exiftool OK
 
Cheers
Lea

TimC

unread,
Mar 5, 2012, 11:22:05 AM3/5/12
to resour...@googlegroups.com
I can't help you directly with Windows but Linux requires additional software in the shape of OpenOffice install and unoconv as described in wiki http://wiki.resourcespace.org/index.php/OpenOffice_Integration so I would guess that additional sofware is required in Windows too as the default install is the same on both platforms and out-of-the-box it doesn't (well definitely not with .docx).

Maybe someone else can comment on what's available for Office conversion and thumbnails in Windows.

Polina Golikova

unread,
Mar 5, 2012, 11:46:56 AM3/5/12
to resour...@googlegroups.com
Mine:  FFmpeg SVN-r22941

Yours: ffmpeg version N-37586-g6833fe4

Could this be reason my video doesn't preview? Any Idea?

--
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To view this discussion on the web visit https://groups.google.com/d/msg/resourcespace/-/2kDSUH0nT4AJ.

To post to this group, send email to resour...@googlegroups.com.
To unsubscribe from this group, send email to resourcespac...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/resourcespace?hl=en.

LeaUK

unread,
Mar 5, 2012, 12:10:03 PM3/5/12
to resour...@googlegroups.com
Thanks Tim
 
I too spotted this but it's Linux'y so I sort of ignored it...
 
 
Polina, I haven't tested video...so do not know if it's currently working.
 
Sorry
Lea
To unsubscribe from this group, send email to resourcespace+unsubscribe@googlegroups.com.

Polina Golikova

unread,
Mar 5, 2012, 12:18:57 PM3/5/12
to resour...@googlegroups.com
:/ thanks anyway, your post was awesomely helpful!

To view this discussion on the web visit https://groups.google.com/d/msg/resourcespace/-/1qdoJ8ZrQTkJ.

To post to this group, send email to resour...@googlegroups.com.
To unsubscribe from this group, send email to resourcespac...@googlegroups.com.

LeaUK

unread,
Mar 6, 2012, 9:46:50 AM3/6/12
to resour...@googlegroups.com
this page it says Office thumbnails are supported with the addition of ImageMagick, Ghostscript and FFmpeg which I have.....??
 
 
confused....
 
Cheers
Lea

On Monday, March 5, 2012 3:07:57 PM UTC, LeaUK wrote:

TimC

unread,
Mar 6, 2012, 10:39:52 AM3/6/12
to resour...@googlegroups.com
Yes does work with older .doc and some other non-XML formatted Office products, I've just tried on one of my installs and got a preview. Does not work with and .docx, .pptx etc for them you need a third party extension... unless of course a very recent ImageMagick supports it.

LeaUK

unread,
Mar 8, 2012, 11:43:14 AM3/8/12
to resour...@googlegroups.com
Hi Tim
 
Thanks for the reply.
 
I can't even get .doc thumbnails and this is really holding deployment up.  Is there anything I can check in terms of configuration or logs?
 
Cheers
Lea

Tom Gleason

unread,
Mar 8, 2012, 11:49:56 AM3/8/12
to resour...@googlegroups.com
Open Document Format and OfficeOpen XML formats can have small
thumbnails embedded in the XML package, and that's how previews are
possible without additional software. But, at least in the Microsoft
Office XML formats (which most people probably don't use), I think you
have to turn on a preference to embed the thumbnail, and then the
preview is very small and not multi-page.

If you want really good multi-page Office Document support, you really
need to get unoconv working, and I've only seen this work on Linux.

> --
> You received this message because you are subscribed to the Google Groups
> "ResourceSpace" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/resourcespace/-/uQMjnjYC1rYJ.


>
> To post to this group, send email to resour...@googlegroups.com.
> To unsubscribe from this group, send email to
> resourcespac...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/resourcespace?hl=en.

--
Tom Gleason
Vice President, Engineering
Colorhythm LLC
http://www.colorhythm.com

Main Office: +1 415-399-9921
Fax: +1 253-399-9928
Mobile: +1 347-537-8465

tgle...@colorhythm.com

LeaUK

unread,
Mar 8, 2012, 11:53:31 AM3/8/12
to resour...@googlegroups.com
Do I need to have some type of preview embedded in to the .doc for Imagemagick to extract?
 
If so, how does one acheive this?
 
Big cheers
Lea

Tom Gleason

unread,
Mar 8, 2012, 12:09:53 PM3/8/12
to resour...@googlegroups.com
Notice .doc is not listed as a Supported File Type on this page.
http://wiki.resourcespace.org/index.php/Supported_file_types_for_thumbnails/previews
If you really need to support Office Documents, you need unoconv, and
that means you probably need to run a Linux server.

> --
> You received this message because you are subscribed to the Google Groups
> "ResourceSpace" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/resourcespace/-/McL34aJ7aegJ.

TimC

unread,
Mar 8, 2012, 12:36:36 PM3/8/12
to resour...@googlegroups.com
And further to Tom's post I'm sorry to say Lea that even if you ran Linux and installed unoconv all is far from plain sailing. I'm not using unoconv at the moment because my own experiments showed the previews it created in many cases to be so bad as to be not worth having, users just wouldn't accept them (fonts all over the place, pictures moved or missing etc etc).

Problem is as someone explained to me unoconv just executes an OpenOffice conversion behind the scenes and much as I like OpenOffice itself it's conversions of anything but simple MS Office docs can be woeful. Again as explained to me this is more a Microsoft issue as their Office specifications run to more than 7000 pages and interpreting them sucessfully is like sending a man to Mars in techical terms. An alternative to OpenOffice called LibreOffice is meant to be better and works with unoconv but I haven't got around to trying it yet.

The only other suggestion I have is somewhere in the group I read stuff a while back of someone getting some experimental (very early release) Windows conversion working but it did involve a lot of techy stuff. If I find it I'll let you know.

Tim

Tom Gleason

unread,
Mar 8, 2012, 1:18:26 PM3/8/12
to resour...@googlegroups.com
On Ubuntu, LibreOffice is the default now, and is basically a drop-in
replacement for OpenOffice. To my knowledge it is not too different
from Open Office (LibreOffice was forked last year from OpenOffice
when Oracle bought OpenOffice via Sun and there were concerns about
it's future), but it would be interesting to compare output.

I don't have a lot of complex Office Documents, and I usually use and
recommend Open Office, so I haven't seen a lot of incompatibilities,
although I have seen a couple of instances where the Microsoft Office
and Open Office render a document differently enough that it was
irritating. I can remember this happening when I produced complex ODF
documents with tables (invoices) programmatically, saved them to a
Microsoft format via Open Office, so our offices could use their
Microsoft Products to edit them if necessary, which is where it got a
bit buggy.

Unconv is still the best solution available (next in line would be
qlpreview on mac).
Here's a nice page of reasons why Microsoft won't support a
server-side Office application. http://support.microsoft.com/kb/257757
Even if they did, the consequences would be pretty bad. You'd have to
either fork the processing of previews to a separate server (assuming
you want to use Linux but have to run an "Office Server" on Windows,
or host your whole RS application on Windows and miss out on the other
benefits of Linux) And it would likely be very expensive. For example,
to run InDesign on the server side, you have to pay something like
$15K+ depending on your usage, and it is illegal to try to script a
single normal InDesign application on the server-side.

Tom

> --
> You received this message because you are subscribed to the Google Groups
> "ResourceSpace" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/resourcespace/-/_AxihwslBEkJ.

LeaUK

unread,
Mar 9, 2012, 8:41:35 AM3/9/12
to resour...@googlegroups.com

Hi Guys

 
Thanks so much for the information and corrections :)
 
OK, so Office 2003 docs are clearly out, but http://wiki.resourcespace.org/index.php/Supported_file_types_for_thumbnails/previews indicates .docx can be thumbnailed yet mine still do not auto generate.
 
There's no chance of using Linux as no-one can admin that here, or at least not to the level of Windows.
 
So why doesn't my .docx function...still struggling with this and it's one of the requirements.
 
 
Cheers again
Lea
 

Tom Gleason

unread,
Mar 9, 2012, 11:27:59 AM3/9/12
to resour...@googlegroups.com
Try to unzip your docx file to see if there is a thumbnail inside of it.
If not, then you need to change settings in your Microsoft programs to
embed thumbnails.
If the thumbnail does exist, it could be that the extraction process
isn't working the same on Windows.

Looking at the command in preview_preprocessing, it looks like it
probably wasn't designed to work on Windows, but maybe isn't that
difficult for someone with Windows skills to fix:

run_command("unzip -p $file \"docProps/thumbnail.jpeg\" > $target");

> --
> You received this message because you are subscribed to the Google Groups
> "ResourceSpace" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/resourcespace/-/0sdpR5AwWkoJ.

LeaUK

unread,
Mar 9, 2012, 12:43:04 PM3/9/12
to resour...@googlegroups.com

Thanks Tom, no thumbnail in folder docProps...and I've spent ages trying to find the option to enable this in Word 2007...not having a great day!

 
Cheers
Lea

Oliver Slay

unread,
May 23, 2013, 8:05:36 AM5/23/13
to resour...@googlegroups.com, t...@buildadam.com
Hi

That doesnt work on files I created with MS Word 2010 ... because the thumbnail is thumbnail.emf...  not .jpeg.

Oliver

David ARNOULT - Edition & Internet Operations

unread,
May 23, 2013, 9:34:01 AM5/23/13
to resour...@googlegroups.com

 

 

[David ARNOULT] Hi

I confirm this problem. As long as ther’s no emf support bu imagemagick on linux (licensed format , you can still try to use unoconv plugin+ open office to convert them to pdf. It works but not for all Word format.

Rgds

 

David

--

You received this message because you are subscribed to the Google Groups "ResourceSpace" group.

To unsubscribe from this group and stop receiving emails from it, send an email to resourcespac...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Oliver Slay

unread,
May 23, 2013, 9:45:25 AM5/23/13
to resour...@googlegroups.com, David ARNOULT - Edition & Internet Operations
Hi David

I was installing unoconv when I wrote that... and can now get Previews and PDF alternate files from DOC and DOCX.

Oliver

Oliver Slay

unread,
May 23, 2013, 9:47:19 AM5/23/13
to resour...@googlegroups.com, David ARNOULT - Edition & Internet Operations
Altho whilst uploading a DOCX in resourcespace (via a browser) - i noticed this in my SSH session:

/build/buildd/libreoffice-3.5.7/writerfilter/source/dmapper/GraphicImport.cxx:1496 failed. Message :GraphicCrop

I don't know what it was doing when it failed..  
Reply all
Reply to author
Forward
0 new messages