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?
Solved! Go to Solution.
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.
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.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.