02-19-2021 10:08 AM
In previous versions using SDK 3, I declared this transformer for viewing DCM (medical) images in Alfresco:
<bean id="transformer.worker.dcm2jpg" class="org.alfresco.repo.content.transform.RuntimeExecutableContentTransformerWorker"> <property name="mimetypeService"> <ref bean="mimetypeService" /> </property> <property name="transformCommand"> <bean class="org.alfresco.util.exec.RuntimeExec"> <property name="commandMap"> <map> <entry key=".*"> <value>${img.exe} "${source}" "${target}"</value> </entry> </map> </property> <property name="errorCodes"> <value>1</value> </property> </bean> </property> <property name="explicitTransformations"> <list> <bean class="org.alfresco.repo.content.transform.ExplictTransformationDetails"> <property name="sourceMimetype"> <value>application/dicom</value> </property> <property name="targetMimetype"> <value>image/jpeg</value> </property> </bean> </list> </property> </bean>
When migrating to SDK 4.1 and using docker images, I found no example of how to declare a transformation using the ImageMagick transformer.
I tried to install ImageMagick on the ACS image, it worked but the program doesn't have access to the images and it didn't work.
Please how can I declare something similar using the ImageMagick docker image?
02-22-2021 08:20 AM
With Alfresco 6.1, this type of transformer definition has been deprecated. New transformers should be based on the new Docker-ised transformer engines. There already exists a Docker-ised ImageMagick - you should only have to adapt it to add your specific source/target mimetype combination in the engine configuration.
02-22-2021 08:20 AM
With Alfresco 6.1, this type of transformer definition has been deprecated. New transformers should be based on the new Docker-ised transformer engines. There already exists a Docker-ised ImageMagick - you should only have to adapt it to add your specific source/target mimetype combination in the engine configuration.
Explore our Alfresco products with the links below. Use labels to filter content by product module.