<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Transformations using ImageMagick in a dockerized Alfresco in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/transformations-using-imagemagick-in-a-dockerized-alfresco/m-p/121966#M33443</link>
    <description>&lt;P&gt;In previous versions using SDK 3, I declared this transformer for viewing DCM (medical) images in Alfresco:&lt;/P&gt;&lt;PRE&gt;&amp;lt;bean id="transformer.worker.dcm2jpg" class="org.alfresco.repo.content.transform.RuntimeExecutableContentTransformerWorker"&amp;gt;
		&amp;lt;property name="mimetypeService"&amp;gt;
			&amp;lt;ref bean="mimetypeService" /&amp;gt;
		&amp;lt;/property&amp;gt;
		&amp;lt;property name="transformCommand"&amp;gt;
			&amp;lt;bean class="org.alfresco.util.exec.RuntimeExec"&amp;gt;
				&amp;lt;property name="commandMap"&amp;gt;
					&amp;lt;map&amp;gt;
						&amp;lt;entry key=".*"&amp;gt;
							&amp;lt;value&amp;gt;${img.exe} "${source}" "${target}"&amp;lt;/value&amp;gt;
						&amp;lt;/entry&amp;gt;
					&amp;lt;/map&amp;gt;
				&amp;lt;/property&amp;gt;
				&amp;lt;property name="errorCodes"&amp;gt;
					&amp;lt;value&amp;gt;1&amp;lt;/value&amp;gt;
				&amp;lt;/property&amp;gt;
			&amp;lt;/bean&amp;gt;
		&amp;lt;/property&amp;gt;
		&amp;lt;property name="explicitTransformations"&amp;gt;
			&amp;lt;list&amp;gt;
				&amp;lt;bean class="org.alfresco.repo.content.transform.ExplictTransformationDetails"&amp;gt;
					&amp;lt;property name="sourceMimetype"&amp;gt;
						&amp;lt;value&amp;gt;application/dicom&amp;lt;/value&amp;gt;
					&amp;lt;/property&amp;gt;
					&amp;lt;property name="targetMimetype"&amp;gt;
						&amp;lt;value&amp;gt;image/jpeg&amp;lt;/value&amp;gt;
					&amp;lt;/property&amp;gt;
				&amp;lt;/bean&amp;gt;				
			&amp;lt;/list&amp;gt;
		&amp;lt;/property&amp;gt;
	&amp;lt;/bean&amp;gt;	&lt;/PRE&gt;&lt;P&gt;When migrating to SDK 4.1 and using docker images, I found no example of how to declare a transformation using the ImageMagick transformer.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Please how can I declare something similar using the ImageMagick docker image?&lt;/P&gt;</description>
    <pubDate>Fri, 19 Feb 2021 15:08:20 GMT</pubDate>
    <dc:creator>filipehtf</dc:creator>
    <dc:date>2021-02-19T15:08:20Z</dc:date>
    <item>
      <title>Transformations using ImageMagick in a dockerized Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/transformations-using-imagemagick-in-a-dockerized-alfresco/m-p/121966#M33443</link>
      <description>&lt;P&gt;In previous versions using SDK 3, I declared this transformer for viewing DCM (medical) images in Alfresco:&lt;/P&gt;&lt;PRE&gt;&amp;lt;bean id="transformer.worker.dcm2jpg" class="org.alfresco.repo.content.transform.RuntimeExecutableContentTransformerWorker"&amp;gt;
		&amp;lt;property name="mimetypeService"&amp;gt;
			&amp;lt;ref bean="mimetypeService" /&amp;gt;
		&amp;lt;/property&amp;gt;
		&amp;lt;property name="transformCommand"&amp;gt;
			&amp;lt;bean class="org.alfresco.util.exec.RuntimeExec"&amp;gt;
				&amp;lt;property name="commandMap"&amp;gt;
					&amp;lt;map&amp;gt;
						&amp;lt;entry key=".*"&amp;gt;
							&amp;lt;value&amp;gt;${img.exe} "${source}" "${target}"&amp;lt;/value&amp;gt;
						&amp;lt;/entry&amp;gt;
					&amp;lt;/map&amp;gt;
				&amp;lt;/property&amp;gt;
				&amp;lt;property name="errorCodes"&amp;gt;
					&amp;lt;value&amp;gt;1&amp;lt;/value&amp;gt;
				&amp;lt;/property&amp;gt;
			&amp;lt;/bean&amp;gt;
		&amp;lt;/property&amp;gt;
		&amp;lt;property name="explicitTransformations"&amp;gt;
			&amp;lt;list&amp;gt;
				&amp;lt;bean class="org.alfresco.repo.content.transform.ExplictTransformationDetails"&amp;gt;
					&amp;lt;property name="sourceMimetype"&amp;gt;
						&amp;lt;value&amp;gt;application/dicom&amp;lt;/value&amp;gt;
					&amp;lt;/property&amp;gt;
					&amp;lt;property name="targetMimetype"&amp;gt;
						&amp;lt;value&amp;gt;image/jpeg&amp;lt;/value&amp;gt;
					&amp;lt;/property&amp;gt;
				&amp;lt;/bean&amp;gt;				
			&amp;lt;/list&amp;gt;
		&amp;lt;/property&amp;gt;
	&amp;lt;/bean&amp;gt;	&lt;/PRE&gt;&lt;P&gt;When migrating to SDK 4.1 and using docker images, I found no example of how to declare a transformation using the ImageMagick transformer.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Please how can I declare something similar using the ImageMagick docker image?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 15:08:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/transformations-using-imagemagick-in-a-dockerized-alfresco/m-p/121966#M33443</guid>
      <dc:creator>filipehtf</dc:creator>
      <dc:date>2021-02-19T15:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Transformations using ImageMagick in a dockerized Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/transformations-using-imagemagick-in-a-dockerized-alfresco/m-p/121967#M33444</link>
      <description>&lt;P&gt;With Alfresco 6.1, this type of transformer definition has been deprecated. New transformers should be based on the new Docker-ised &lt;A href="https://github.com/Alfresco/alfresco-transform-core/" target="_self" rel="nofollow noopener noreferrer"&gt;transformer engines&lt;/A&gt;. There already exists a Docker-ised ImageMagick - you should only have to adapt it to add your specific source/target mimetype combination in the &lt;A href="https://github.com/Alfresco/alfresco-transform-core/blob/master/alfresco-transform-imagemagick/alfresco-transform-imagemagick/src/main/resources/imagemagick_engine_config.json" target="_self" rel="nofollow noopener noreferrer"&gt;engine configuration&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 13:20:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/transformations-using-imagemagick-in-a-dockerized-alfresco/m-p/121967#M33444</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2021-02-22T13:20:01Z</dc:date>
    </item>
  </channel>
</rss>

