<?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 Request for How-To: Thumbnail webscripts in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/request-for-how-to-thumbnail-webscripts/m-p/199418#M152548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've recently download the Alfresco 3.0 Enterprise to evaluate. I'm very much interested in taking advantage of the thumbnailing features I've read about. I'm referring to the scripts located in the /org/alfresco/repository/thumbnail package.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My use case is that I have a space containing images and would like to invoke a script(s) to create and view thumbnails. The goal would be the return of a URL that could be placed on a web page, RSS media feed, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/3.0_JavaScript_Services_API#Thumbnail_Services" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/3.0_JavaScript_Services_API#Thumbnail_Services&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;but given my newness to Alfresco webscripting, I'm unable to put 2-2 together and structure a URL request to the script properly to see the 'magic' happen. This isn't enough detail for me to leverage.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have a solid example how to implement the use case I describe above? I'm very interested in seeing how the request to the webscript would be structured that produces thumbnails for a given space.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Nov 2008 16:37:35 GMT</pubDate>
    <dc:creator>jluzier</dc:creator>
    <dc:date>2008-11-11T16:37:35Z</dc:date>
    <item>
      <title>Request for How-To: Thumbnail webscripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/request-for-how-to-thumbnail-webscripts/m-p/199418#M152548</link>
      <description>I've recently download the Alfresco 3.0 Enterprise to evaluate. I'm very much interested in taking advantage of the thumbnailing features I've read about. I'm referring to the scripts located in the /org/alfresco/repository/thumbnail package.My use case is that I have a space containing images and w</description>
      <pubDate>Tue, 11 Nov 2008 16:37:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/request-for-how-to-thumbnail-webscripts/m-p/199418#M152548</guid>
      <dc:creator>jluzier</dc:creator>
      <dc:date>2008-11-11T16:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Request for How-To: Thumbnail webscripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/request-for-how-to-thumbnail-webscripts/m-p/199419#M152549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Your use case may be better suited to the REST API. &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/3.0_REST_API#Thumbnail_Service" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/3.0_REST_API#Thumbnail_Service&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In either case, you can browse through the Share source code to see how we utilise the Thumbnail service in the Document Library and elsewhere.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 19:42:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/request-for-how-to-thumbnail-webscripts/m-p/199419#M152549</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2008-11-11T19:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Request for How-To: Thumbnail webscripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/request-for-how-to-thumbnail-webscripts/m-p/199420#M152550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is this service available in 3.0b Labs version?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My test post (same effect with other methods):&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;htdump -post="{ \"thumbnailName\" : \"webpreview\"}" "&lt;A href="http://admin:admin@127.0.0.1:8080/alfresco/service/api/node/workspace/SpacesStore/34042d8b-d127-43ac-8d76-b833493e0c96/content/thumbnails" rel="nofollow noopener noreferrer"&gt;http://admin:admin@127.0.0.1:8080/alfresco/service/api/node/workspace/SpacesStore/34042d8b-d127-43ac-8d76-b833493e0c96/content/thumbnails&lt;/A&gt;"&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;And the answer (&lt;/SPAN&gt;&lt;STRONG&gt;ReferenceError: \"json\" is not defined&lt;/STRONG&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;org.alfresco.scripts.ScriptException: Failed to execute script '\/org\/alfresco\/repository\/thumbnail\/thumbnails.post.js (in classpath store file:\/opt\/alfresco\/tomcat\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts)': ReferenceError: \"json\" is not defined. (AlfrescoScript#17)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 12:00:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/request-for-how-to-thumbnail-webscripts/m-p/199420#M152550</guid>
      <dc:creator>louise</dc:creator>
      <dc:date>2008-11-13T12:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Request for How-To: Thumbnail webscripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/request-for-how-to-thumbnail-webscripts/m-p/199421#M152551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need to post the request as &lt;/SPAN&gt;&lt;STRONG&gt;application/json&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 12:29:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/request-for-how-to-thumbnail-webscripts/m-p/199421#M152551</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2008-11-13T12:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Request for How-To: Thumbnail webscripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/request-for-how-to-thumbnail-webscripts/m-p/199422#M152552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Mike!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My request with new content type (&lt;/SPAN&gt;&lt;STRONG&gt;Content-Type: application/json;charset=UTF-8&lt;/STRONG&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;htdump -extra="Content-Type: application/json;charset=UTF-8" -post="{thumbnailName:medium}" "&lt;A href="http://admin:admin@127.0.0.1:8080/alfresco/service/api/node/workspace/SpacesStore/34042d8b-d127-43ac-8d76-b833493e0c96/content/thumbnails" rel="nofollow noopener noreferrer"&gt;http://admin:admin@127.0.0.1:8080/alfresco/service/api/node/workspace/SpacesStore/34042d8b-d127-43ac-8d76-b833493e0c96/content/thumbnails&lt;/A&gt;"&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;And the answer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "thumbnailName" : "medium",&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "url" : "\/alfresco\/service\/api\/node\/workspace\/SpacesStore\/34042d8b-d127-43ac-8d76-b833493e0c96\/content\/thumbnails\/medium"&lt;BR /&gt;}&lt;BR /&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2008 12:35:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/request-for-how-to-thumbnail-webscripts/m-p/199422#M152552</guid>
      <dc:creator>louise</dc:creator>
      <dc:date>2008-11-13T12:35:13Z</dc:date>
    </item>
  </channel>
</rss>

