<?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 Re: How to use ImageMagick API using Java Class in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-imagemagick-api-using-java-class/m-p/240332#M193462</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You've got a couple of options&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1/ Run it as a rule: every time an image is added to the space, a rule is executed that runs the image transformer and creates a watermarked version of the image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2/ Create a script that can be run against the space the space to execute the transformation against the children of the space. Take a look at this portion of the javascript API&amp;nbsp; [ulr]&lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/3.3_JavaScript_API#Transformation_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/3.3_JavaScript_API#Transformation_API&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The watermarked image would need to be output to a different space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jared&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Aug 2010 06:50:58 GMT</pubDate>
    <dc:creator>jottley</dc:creator>
    <dc:date>2010-08-20T06:50:58Z</dc:date>
    <item>
      <title>How to use ImageMagick API using Java Class</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-imagemagick-api-using-java-class/m-p/240324#M193454</link>
      <description>Hi..I have installed&amp;nbsp; Alfresco 3.3 enterprise edition on my Windows XP machine. I know how to use various options like re size,rotate,etc options of&amp;nbsp; ImageMagick through command line,but i want to know how can i use these options in alfresco so that i can crop,re size the image files from alfresco r</description>
      <pubDate>Mon, 16 Aug 2010 19:54:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-imagemagick-api-using-java-class/m-p/240324#M193454</guid>
      <dc:creator>ankit_yakkundi</dc:creator>
      <dc:date>2010-08-16T19:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use ImageMagick API using Java Class</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-imagemagick-api-using-java-class/m-p/240325#M193455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OTB you can pass command line parameters to ImageMagick as part of the rule (or as part of a script).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need something a bit more complex(like if you are merging layers)&amp;nbsp; You'll need to customize the action.&amp;nbsp; Basically duplicating the OTB transformer but by customizing the commandline values and then creating the custom UI and Bean components as needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Content_Transformations" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Content_Transformations&lt;/A&gt;&lt;SPAN&gt; (Also see the Related Article links at the bottom of the page)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jared&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 21:15:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-imagemagick-api-using-java-class/m-p/240325#M193455</guid>
      <dc:creator>jottley</dc:creator>
      <dc:date>2010-08-16T21:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to use ImageMagick API using Java Class</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-imagemagick-api-using-java-class/m-p/240326#M193456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please explain whai have to do?? Can you tell me the steps whcih i have to follow. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can i call the api's through java class file. How to integrate it with alfresco….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;these are the doubts..please solve my doubts..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 13:09:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-imagemagick-api-using-java-class/m-p/240326#M193456</guid>
      <dc:creator>ankit_yakkundi</dc:creator>
      <dc:date>2010-08-18T13:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to use ImageMagick API using Java Class</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-imagemagick-api-using-java-class/m-p/240327#M193457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In most cases there is no Java needed…I would move to java only in corner cases.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a simple walk through, for it we will use the options found in the first example from this page &lt;/SPAN&gt;&lt;A href="http://www.imagemagick.org/script/command-line-processing.php" rel="nofollow noopener noreferrer"&gt;http://www.imagemagick.org/script/command-line-processing.php&lt;/A&gt;&lt;SPAN&gt; from the ImageMagick website.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We will run this as an action instead of a rule…but the wizard is pretty much the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1/ Access the document details page of a JPG image file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2/ On the document details page, from the 'Action' list choose 'Run Action'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3/ On Step One select 'Transform and copy image'&amp;nbsp; from the 'Select Action' drop down menu.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4/ Click on the 'Set Values and Add' button.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5/ On the page that opens, select the 'Required format'&amp;nbsp; for the output image type: 'GIF Image'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6/ In the 'Options' text field add: +matte ( +clone -shade 110x90 -normalize -negate +clone -compose Plus -composite ) ( -clone 0 -shade 110x50 -normalize -channel BG -fx 0 +channel -matte ) -delete 0 +swap -compose Multiply&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7/ Set the output 'Destination'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;8/ Click the 'OK' button&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;9/ The 'Next' button will lead you to a summary screen, So we will click on the 'Finish' button to run the action&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;10/&amp;nbsp; You will now be back at the Document Details page, so click the 'Close' button.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11/ Navigate to the output destination.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;12/ You will see the output image generated with the options passed above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jared&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Aug 2010 04:34:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-imagemagick-api-using-java-class/m-p/240327#M193457</guid>
      <dc:creator>jottley</dc:creator>
      <dc:date>2010-08-19T04:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to use ImageMagick API using Java Class</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-imagemagick-api-using-java-class/m-p/240328#M193458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi jottley&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the help.. It worked… But i want to know how can i add watermark to pdf files…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have used imagemagick as rule…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea or suggestions are welcome…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advanced..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Aug 2010 12:42:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-imagemagick-api-using-java-class/m-p/240328#M193458</guid>
      <dc:creator>ankit_yakkundi</dc:creator>
      <dc:date>2010-08-19T12:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use ImageMagick API using Java Class</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-imagemagick-api-using-java-class/m-p/240329#M193459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi jottley&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to know whether we can add watermarking to more than one image file at a time??? :?: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For what all types of document we can add watermark, is it only applicable for image files??? :?: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can we have an action on folder which will add the watermark on all the image files stored on the folder?? :?:&amp;nbsp; :idea: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas or suggestions are welcome…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 05:59:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-imagemagick-api-using-java-class/m-p/240329#M193459</guid>
      <dc:creator>ankit_yakkundi</dc:creator>
      <dc:date>2010-08-20T05:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to use ImageMagick API using Java Class</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-imagemagick-api-using-java-class/m-p/240330#M193460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For images you can add text as a watermark through ImageMagick.&amp;nbsp; If you want to add an image as the watermark to an image, that will require customizing Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to add watermarks to PDF files, you'll need to look at an extension to Alfresco using either pdfbox or iText.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Either of these will require several different customizations:&amp;nbsp; Custom Action and Custom UI work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Take a look at &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Custom_Action_UI" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Custom_Action_UI&lt;/A&gt;&lt;SPAN&gt; and at the source code for Alfresco &lt;/SPAN&gt;&lt;A href="https://svn.alfresco.com/" rel="nofollow noopener noreferrer"&gt;https://svn.alfresco.com/&lt;/A&gt;&lt;SPAN&gt; for the ImageMagick transformer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also this on custom transformers &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Content_Transformations" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Content_Transformations&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jared&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 06:13:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-imagemagick-api-using-java-class/m-p/240330#M193460</guid>
      <dc:creator>jottley</dc:creator>
      <dc:date>2010-08-20T06:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to use ImageMagick API using Java Class</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-imagemagick-api-using-java-class/m-p/240331#M193461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But i want to know whether we can add watermark for more than one image files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you tell me what all files i need to change to add new action for the folder which will add watermark to all the files in the folder.Can i get sample code…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 06:34:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-imagemagick-api-using-java-class/m-p/240331#M193461</guid>
      <dc:creator>ankit_yakkundi</dc:creator>
      <dc:date>2010-08-20T06:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to use ImageMagick API using Java Class</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-imagemagick-api-using-java-class/m-p/240332#M193462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You've got a couple of options&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1/ Run it as a rule: every time an image is added to the space, a rule is executed that runs the image transformer and creates a watermarked version of the image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2/ Create a script that can be run against the space the space to execute the transformation against the children of the space. Take a look at this portion of the javascript API&amp;nbsp; [ulr]&lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/3.3_JavaScript_API#Transformation_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/3.3_JavaScript_API#Transformation_API&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The watermarked image would need to be output to a different space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jared&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 06:50:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-imagemagick-api-using-java-class/m-p/240332#M193462</guid>
      <dc:creator>jottley</dc:creator>
      <dc:date>2010-08-20T06:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to use ImageMagick API using Java Class</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-imagemagick-api-using-java-class/m-p/240333#M193463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the first option which you gave , i have implemented that yesterday only..But the problem is thati want to add watermark to pdf, so i thought that when user uploads a pdf file, that pdf file is converted into image files which is then transformed into watermark image file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you suggest me how to do it???? The problem is that when i upload a pdf file, a single image file is created for the pdf file ie only front page of pdf file is transformed into image. How can i create image file for a pdf file ie if a pdf file contains 35 pages, then 35 image files should be created, which can then be watermarked….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you also tell me what options can i use to resize the image. If i use thumbnail option then too small image is created.And can we add the watermark text in diagonal rather than horizontal??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea or suggestions are welcome..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for replying…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 07:22:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-imagemagick-api-using-java-class/m-p/240333#M193463</guid>
      <dc:creator>ankit_yakkundi</dc:creator>
      <dc:date>2010-08-20T07:22:07Z</dc:date>
    </item>
  </channel>
</rss>

