Transformations using ImageMagick in a dockerized Alfresco

cancel
Showing results for 
Search instead for 
Did you mean: 
filipehtf
Member II

Transformations using ImageMagick in a dockerized Alfresco

Jump to solution

 

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?

 

1 Solution

Accepted Solutions
afaust
Master

Re: Transformations using ImageMagick in a dockerized Alfresco

Jump 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.

View solution in original post

1 Reply
afaust
Master

Re: Transformations using ImageMagick in a dockerized Alfresco

Jump 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.