cancel
Showing results for 
Search instead for 
Did you mean: 

Thumbnails

andyhorton
Champ in-the-making
Champ in-the-making
Alfresco 4.

I have a site with many hundreds of folders containing photo (jpg) files. When I go to a  folder for the first time, there are no thumbnails. If I refresh the  folder (with the browser's refresh button) the folder does show thumbnails. It is clear from monitoring the system's CPU etc, that the thumbnails are being produced after the first view of the folder. One has to wait a while before refreshing a large folder, or press refresh again and again. On subsequent visits to a folder the thumbnails are already there.

So, my question is: Is it possible to (A) cause thumbnails to be generated when images are uploaded and/or (B) force thumbnail generation for already uploaded files?

Andy
2 REPLIES 2

jpfi
Champ in-the-making
Champ in-the-making
Hi,
yub, you should use javaScript API http://docs.alfresco.com/4.0/topic/com.alfresco.enterprise.doc/references/API-JS-Thumbnail-createThu...
a) add a rule & implement a small javascript action if you like to have this non-lazy thumbnail generation for special user only
or b) call
newFile.createThumbnail("doclib", true);
  for each via Share uploaded file (templates\webscripts\org\alfresco\repository\upload\upload.post.js)

You can also add "doclib" to showConfig.thumbnails of Share's upload components…but that's a little bit more tricky.
cheers, jan

synfe
Champ in-the-making
Champ in-the-making
Hi Jan,

Could you please elaborate on adding "doclib to showConfig.thumbnails of Share's upload components"?

or generally I guess my question is… I am using Java web service with Alfresco 4.0.d and looking to add thumbnail functionality; I am able to fetch the thumbnail, but only once its been refreshed through the share UI. Can you recommend the best way to have this thumbnail available right away?

Thanks