<?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 Image display using Renditions in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/image-display-using-renditions/m-p/82321#M25319</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have uploaded an image to alfreso repository. Renditions are also generated for the image file node.&lt;/P&gt;&lt;P&gt;Now I want to get image and display in front-end. Which Alfresco API can be used to create image-url using the renditions from the image. Please suggest what can be done to cretae - imageUrl for&amp;nbsp; &amp;lt;img [src] = "&lt;SPAN&gt;imageUrl&lt;/SPAN&gt;"&amp;gt; in html file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Santosh.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Sep 2019 10:12:37 GMT</pubDate>
    <dc:creator>santoshd</dc:creator>
    <dc:date>2019-09-11T10:12:37Z</dc:date>
    <item>
      <title>Image display using Renditions</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/image-display-using-renditions/m-p/82321#M25319</link>
      <description>I have uploaded an image to alfreso repository. Renditions are also generated for the image file node.Now I want to get image and display in front-end. Which Alfresco API can be used to create image-url using the renditions from the image. Please suggest what can be done to cretae - imageUrl for&amp;nbsp; &amp;amp;l</description>
      <pubDate>Wed, 11 Sep 2019 10:12:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/image-display-using-renditions/m-p/82321#M25319</guid>
      <dc:creator>santoshd</dc:creator>
      <dc:date>2019-09-11T10:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Image display using Renditions</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/image-display-using-renditions/m-p/82322#M25320</link>
      <description>&lt;P&gt;You can use either the CMIS API or the Public REST API to list renditions. Here is the Public REST API swagger docs on renditions: &lt;A href="https://api-explorer.alfresco.com/api-explorer/#!/renditions/listRenditions" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api-explorer.alfresco.com/api-explorer/#!/renditions/listRenditions&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Once you have the node reference of the rendition you want, you can refer to it similar to any other node reference. Here is a link that downloads the image from Alfresco:&lt;/P&gt;
&lt;P&gt;http://localhost:8080/alfresco/s/api/node/workspace/SpacesStore/e061a117-009f-4a3b-9c25-f5238c669d87/content/thumbnails/doclib&lt;/P&gt;
&lt;P&gt;Here is the same link, but this one includes arguments for that cause the rendition to be queued for creation if it does not already exist (queue) and one that returns the placeholder image if the rendition does not already exist (ph).&lt;/P&gt;
&lt;P&gt;http://localhost:8080/alfresco/s/api/node/workspace/SpacesStore/e061a117-009f-4a3b-9c25-f5238c669d87/content/thumbnails/doclib?c=queue&amp;amp;ph=true&lt;/P&gt;
&lt;P&gt;If instead you want to download the image using the user's Share session, you would do so via the Share proxy, like:&lt;/P&gt;
&lt;P&gt;http://localhost:8080/share/proxy/alfresco/api/node/workspace/SpacesStore/e061a117-009f-4a3b-9c25-f5238c669d87/content/thumbnails/doclib?c=queue&amp;amp;ph=true&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 14:14:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/image-display-using-renditions/m-p/82322#M25320</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2019-09-19T14:14:15Z</dc:date>
    </item>
  </channel>
</rss>

