I am developing CMIS based application code to get thumbnails from the Alfresco repository. But thumbnails are not available immediately after insertion. How can I set CMIS when creating a file, pls? Can I set up on Map<String, Object>, ContentStream, or another way to start doclib creation?
Or is it just about setting the Alfresco?
The action to create a rendition (the thumbnail) can't be fired from CMIS API (afaik). So you need to wait for Alfresco to create that and once this happens, you can get the rendition by using Rendition API.
Sample code for this operation is available in @jpotts reply to this question: https://stackoverflow.com/questions/38655368/how-to-get-rendition-copy-of-word-document-from-alfresc...
I use this GET request for thumbnail, works if doc lib is created. But doc lib is only generated if I open the Alfresco UI with this file.
Is it possible to append the OperationContext to the GET request parameter ?c=force via CMIS?
In ALF7 I have these parameters in alfresco-global. properties:
transform.service.enabled=true local.transform.service.enabled=true messaging.subsystem.autoStart=true alfresco.restApi.basicAuthScheme=true
Is there anything else to add?
Is there a lazy evaluation of thumbnails in alfresco? If so, how do I turn it off? I need to ensure that ALF creates a thumbnail immediately after inserting the file via CMIS.
In order to create a new rendition (after the inserting the file using CMIS) you need to use the Alfresco REST API:
There is no option available from CMIS Client.
In ALF6, thumbnails were generated from documents(pdf, txt, pptx, csv, etc) immediately after insertion. Only thumbnails from images were not generated automatically. What's the rendition in ALF6 and ALF7 different?
Not sure if that is the root cause, but Transformers changed from ACS 6.2:
On the other hand, I've found this property:
You'll find additional details in:
Note that this is also an asynchronous operation.
Thank you for the advice, REST generating thumbnail is functioning perfectly. Could you also give me advice on how to set up CMIS, please?
I have already tried to set up doclib, thumbnail, scImageThumbnail yet it has not to trigger the correct transformation.
In the case of CMIS is error thumbnail="true" against REST transformation. If the transformation is started using CMIS, then doclib is not created. It is created only after the REST call.
In ALF7 with embedded ImageMagick works perfectly.
But I need it to work for ALF6.
In ALF6 works only documents. It does not create a thumbnail from the images.
In ALF6 I have this configuration.
Do I need to add anything else for ALF6, pls?