3 weeks ago - last edited 2 weeks ago
Hello!
I've created a custom transformer for a new xmind mimetype. It does three transformation: xmind to txt for the solr6 search engine, xmind to pdf for document preview in Share and png for thumbnails in Share. It works fine in tests and alfresco successfully use it for text and pdf transformation. But the repo do not initializes thumbnail generation:
Here is the transformer config:
{
"transformOptions": {
"xmindOptions": [
{ "value": { "name": "thumbnail" } },
{ "value": { "name": "resizeHeight" } },
{ "value": { "name": "resizeWidth" } },
{ "value": { "name": "resizePercentage" } },
{ "value": { "name": "allowEnlargement" } },
{ "value": { "name": "maintainAspectRatio" } }
]
},
"transformers": [
{
"transformerName": "xmind",
"supportedSourceAndTargetList": [
{
"sourceMediaType": "application/x-xmind",
"targetMediaType": "text/plain"
},
{
"sourceMediaType": "application/x-xmind",
"targetMediaType": "application/pdf"
},
{
"sourceMediaType": "application/x-xmind",
"targetMediaType": "image/png"
}
],
"transformOptions": ["xmindOptions"]
}
]
}
The javascript does not create doclib. There is no errors, just do nothing:
document.createThumbnail("doclib");
How to configure Alfresco or transformer to create the doclib thumbnail?
Thanks, Serge
Alfresco community 23.3, Docker Compose deployment
3 weeks ago
I guess that you need to extend the "pdfrenderer" transformer, to add the x-xmind to png pipeline:
3 weeks ago
I guess that you need to extend the "pdfrenderer" transformer, to add the x-xmind to png pipeline:
2 weeks ago
Thanks Angel!
I removed png from my transformer and made two new pipelines for png and jpeg thumbnails.
Explore our Alfresco products with the links below. Use labels to filter content by product module.