Command-Line transformation engine - no Java implementation required. Alfresco ready!
205
The Command-Line T-Engine is a flexible transformation engine designed to execute command-line tools for document, image, or media transformations. It follows the Alfresco T-Engines specification, enabling seamless integration with Alfresco or the Pleodox rendition & transformation server.
This docker image is distributed as a native application.
If you need a Windows native image please reach at [email protected].
A base Docker image (docker.pleosoft.com/pleosoft/cmd-transformer:version) provides the core functionality.
Users can extend the base image by:
Create a Dockerfile:
FROM docker.pleosoft.com/pleosoft/cmd-transformer:XXX
COPY engine_config.json /workspace/engine_config.json
COPY exiftool-cmd.spel /workspace/exiftool-cmd.spel
COPY exiftool-options.spel /workspace/exiftool-options.spel
COPY application.yaml /workspace/application.yaml
ENV SPRING_CONFIG_ADDITIONAL_LOCATION=/workspace/
USER root
RUN apt-get update && \
apt-get install -y libimage-exiftool-perl && \
apt-get clean
EXPOSE 8181
Build and run the container.
docker build -t cmd-transformer:XXX-exiftool .
it is possible to run the application with multiple command line tools in a single instance
application.yaml:
transformserver:
providers:
exif: /workspace/exif
ghostscript: /workspace/ghostscript
...
each folder should contain at least
you are free to include in your container image anything else that fits your use case.
engine_config.json:
{
"transformers": [
{
"transformerName": "exiftool",
"supportedSourceAndTargetList": [
{"sourceMediaType": "application/pdf", "targetMediaType": "alfresco-metadata-extract" }
]
}
]
}
command and options are implemented as SPEL
exiftool-cmd.spel:
{
commandsAndArguments = {'*': {'exiftool', '${source}', 'SPLIT:${options}', '-args', '-G1', '-S', '-struct', '-j', '-W+!', '${target}'}},
errorCodes = '1,2,3'
}
exiftool-options.spel:
{
}
a more advanced example checking request options (only if the engine is configured with those transform options)
{
#options['exifWidth'] != null ? '--width='+#options['exifWidth'] : null,
#options['exifHeight'] != null ? '--width2='+#options['exifHeight'] : null
}
This software is provided free of charge for use, but without any warranty. It is built as a native image on top of Spring Framework libraries and Spring Boot. The software includes no third-party software except for Spring Framework libraries, OpenTelemetry/Micrometer, and proprietary code developed by Pleo Soft d.o.o.
The source code for the Docker image (non-native images) and Windows executables is available to customers upon request. The binaries are distributed under an unlockable source code license, allowing free usage with limitations on access to the source code.
Content type
Image
Digest
sha256:ea28cb509…
Size
134.6 MB
Last updated
over 1 year ago
docker pull pleosoft/cmd-transformer:1.0.0