<?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 Adding a new rendition to an existing document in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-rendition-to-an-existing-document/m-p/22789#M9910</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking for some guidance on how to add a new type of rendition to a set of nodes.&amp;nbsp; Basically I have a large number of .TIF files that I would like to create smaller JPEG or PNG renditions for to be used a website.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using 'transformImage' I can easily create new versions of an image and store them in a folder which is really nice:&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; node &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; search&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;findNode&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'workspace://SpacesStore/101bc9b8-1fc7-43fa-9ff3-f22c38bae133'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; destDir &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; search&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;findNode&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'workspace://SpacesStore/8e955a31-2bbe-4bda-af0e-7bea49ff4db0'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; transformedNode &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; node&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;transformImage&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"image/jpeg"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'-resize 50%'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; destDir&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'm a bit lost with using the RenditionService (&lt;A class="link-titled" href="http://docs.alfresco.com/5.2/references/API-JS-RenditionService-render.html" title="http://docs.alfresco.com/5.2/references/API-JS-RenditionService-render.html" rel="nofollow noopener noreferrer"&gt;render | Alfresco Documentation&lt;/A&gt;&amp;nbsp;) to render a transformation like the above as a new rendition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Oct 2017 14:07:56 GMT</pubDate>
    <dc:creator>neilecker</dc:creator>
    <dc:date>2017-10-05T14:07:56Z</dc:date>
    <item>
      <title>Adding a new rendition to an existing document</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-rendition-to-an-existing-document/m-p/22789#M9910</link>
      <description>I'm looking for some guidance on how to add a new type of rendition to a set of nodes.&amp;nbsp; Basically I have a large number of .TIF files that I would like to create smaller JPEG or PNG renditions for to be used a website.Using 'transformImage' I can easily create new versions of an image and store them</description>
      <pubDate>Thu, 05 Oct 2017 14:07:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-rendition-to-an-existing-document/m-p/22789#M9910</guid>
      <dc:creator>neilecker</dc:creator>
      <dc:date>2017-10-05T14:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a new rendition to an existing document</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-rendition-to-an-existing-document/m-p/22790#M9911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's an oldie-but-goodie, going all the way back to March of 2009. It might help you figure out how to register a thumbnail definition, which is what you're trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://ecmarchitect.com/archives/2009/03/03/913" title="https://ecmarchitect.com/archives/2009/03/03/913" rel="nofollow noopener noreferrer"&gt;Grasping Thumbnails in Alfresco 3 | ECM Architect&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 16:15:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adding-a-new-rendition-to-an-existing-document/m-p/22790#M9911</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2017-10-05T16:15:18Z</dc:date>
    </item>
  </channel>
</rss>

