<?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: image resize - problem with ImageMagick in tSystem in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/image-resize-problem-with-ImageMagick-in-tSystem/m-p/2355901#M121541</link>
    <description>Thanks for your reply first.
&lt;BR /&gt;I have to put everything inside like the following or just the first two part like the one you showed me below?
&lt;BR /&gt;new String[]{"C:\\Program Files\\ImageMagick-6.7.3-Q16\\convert.exe",((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))," -resize 64x64! ", ((String)globalMap.get("tFileList_1_CURRENT_FILEDIRECTORY")),"\\exact_",((String)globalMap.get("tFileList_1_CURRENT_FILE")),".",((String)globalMap.get("tFileList_1_CURRENT_FILEEXTENSION"))}
&lt;BR /&gt;I tried both but still got error message from both of them. I shouldn't have space in the filepath?
&lt;BR /&gt;Thanks!!!</description>
    <pubDate>Tue, 20 Mar 2012 18:52:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-03-20T18:52:39Z</dc:date>
    <item>
      <title>image resize - problem with ImageMagick in tSystem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/image-resize-problem-with-ImageMagick-in-tSystem/m-p/2355897#M121537</link>
      <description>I'm using ImageMagick in tSystem to resize a picture. 
&lt;BR /&gt;In the command, 
&lt;BR /&gt;"C:\\Program Files\\ImageMagick-6.7.3-Q16\\convert.exe "+((String)globalMap.get("tFileList_1_CURRENT_FILEPATH")) +" -resize 64x64! "+((String)globalMap.get("tFileList_1_CURRENT_FILEDIRECTORY"))+"\\exact_"+((String)globalMap.get("tFileList_1_CURRENT_FILE"))+"."+((String)globalMap.get("tFileList_1_CURRENT_FILEEXTENSION")) 
&lt;BR /&gt; 
&lt;BR /&gt;It was working fine but I just found one problem. 
&lt;BR /&gt;I'm using ((String)globalMap.get("tFileList_1_CURRENT_FILEPATH")) to get the file name and path. As long as there's no space in the file name, it's working well. Like C:/folder1/folder2/testa.jpg. It works. 
&lt;BR /&gt;But if the file name changed to test a.jpg like C:/folder1/folder2/test a.jpg then it failed to run. 
&lt;BR /&gt;And will get error as follows: 
&lt;BR /&gt;Magick: unable to open image `C:\folder1/folder2/test': No such file or directory @ error/blob.c/OpenBlob/2589. 
&lt;BR /&gt;Magick: no decode delegate for this image format `C:\folder1/folder2/test' @ error/constitute.c/ReadImage/532. 
&lt;BR /&gt;Magick: unable to open image `a.jpg': No such file or directory @ error/blob.c/OpenBlob/2589. 
&lt;BR /&gt;Magick: unable to open image `folder1/folder2/test': No such file or directory @ error/blob.c/OpenBlob/2589. 
&lt;BR /&gt;Magick: no decode delegate for this image format `C:\folder1/folder2/test' @ error/constitute.c/ReadImage/532. 
&lt;BR /&gt;Magick: missing an image filename `a.jpg' @ error/convert.c/ConvertImageCommand/3016. 
&lt;BR /&gt; 
&lt;BR /&gt;Does it mean I couldn't have space in the file name? How can I do to make it work with space? 
&lt;BR /&gt;Could anyone help me on this please? Thanks!!!!</description>
      <pubDate>Fri, 16 Mar 2012 21:04:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/image-resize-problem-with-ImageMagick-in-tSystem/m-p/2355897#M121537</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-16T21:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: image resize - problem with ImageMagick in tSystem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/image-resize-problem-with-ImageMagick-in-tSystem/m-p/2355898#M121538</link>
      <description>Hi
&lt;BR /&gt;Check "Use Array Command". 
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
      <pubDate>Mon, 19 Mar 2012 02:36:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/image-resize-problem-with-ImageMagick-in-tSystem/m-p/2355898#M121538</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-19T02:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: image resize - problem with ImageMagick in tSystem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/image-resize-problem-with-ImageMagick-in-tSystem/m-p/2355899#M121539</link>
      <description>What version talend do u use? I'm using 5.0.1 and I don't see the array/single command in the component? Do I have to update the component? Or Is there other way to solve it? 
&lt;BR /&gt;Thanks!</description>
      <pubDate>Mon, 19 Mar 2012 15:39:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/image-resize-problem-with-ImageMagick-in-tSystem/m-p/2355899#M121539</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-19T15:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: image resize - problem with ImageMagick in tSystem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/image-resize-problem-with-ImageMagick-in-tSystem/m-p/2355900#M121540</link>
      <description>Hi
&lt;BR /&gt;My TOS version is TOS_DI-r75219-V5.0.1NB.
&lt;BR /&gt;I notice that this new feature will be added in TOS 5.1.0.
&lt;BR /&gt;Now you can use this workaround.
&lt;BR /&gt;
&lt;PRE&gt;new String[]{"C:\\Program Files\\ImageMagick-6.7.3-Q16\\convert.exe",((String)globalMap.get("tFileList_1_CURRENT_FILEPATH")) }&lt;/PRE&gt;
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
      <pubDate>Tue, 20 Mar 2012 02:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/image-resize-problem-with-ImageMagick-in-tSystem/m-p/2355900#M121540</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-20T02:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: image resize - problem with ImageMagick in tSystem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/image-resize-problem-with-ImageMagick-in-tSystem/m-p/2355901#M121541</link>
      <description>Thanks for your reply first.
&lt;BR /&gt;I have to put everything inside like the following or just the first two part like the one you showed me below?
&lt;BR /&gt;new String[]{"C:\\Program Files\\ImageMagick-6.7.3-Q16\\convert.exe",((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))," -resize 64x64! ", ((String)globalMap.get("tFileList_1_CURRENT_FILEDIRECTORY")),"\\exact_",((String)globalMap.get("tFileList_1_CURRENT_FILE")),".",((String)globalMap.get("tFileList_1_CURRENT_FILEEXTENSION"))}
&lt;BR /&gt;I tried both but still got error message from both of them. I shouldn't have space in the filepath?
&lt;BR /&gt;Thanks!!!</description>
      <pubDate>Tue, 20 Mar 2012 18:52:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/image-resize-problem-with-ImageMagick-in-tSystem/m-p/2355901#M121541</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-20T18:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: image resize - problem with ImageMagick in tSystem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/image-resize-problem-with-ImageMagick-in-tSystem/m-p/2355902#M121542</link>
      <description>Hi 
&lt;BR /&gt;The reason is that you put wrong parameters in String[] array. 
&lt;BR /&gt;Each String[] array element should be a parameter. 
&lt;BR /&gt; 
&lt;PRE&gt;(String)globalMap.get("tFileList_1_CURRENT_FILE")),".",((String)globalMap.get("tFileList_1_CURRENT_FILEEXTENSION"))&lt;/PRE&gt; 
&lt;BR /&gt;or 
&lt;BR /&gt; 
&lt;PRE&gt;"\\exact_",((String)globalMap.get("tFileList_1_CURRENT_FILE")),".",((String)globalMap.get("tFileList_1_CURRENT_FILEEXTENSION"))&lt;/PRE&gt; 
&lt;BR /&gt;They may be one parameter. I don't know how to use this command. 
&lt;BR /&gt;Maybe the command should be like this. 
&lt;BR /&gt; 
&lt;PRE&gt;new String[]{"C:\\Program Files\\ImageMagick-6.7.3-Q16\\convert.exe",&lt;BR /&gt;((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))," -resize 64x64! ", &lt;BR /&gt;(String)globalMap.get("tFileList_1_CURRENT_FILEDIRECTORY"))+"\\exact_"+&lt;BR /&gt;((String)globalMap.get("tFileList_1_CURRENT_FILE"))+"."+((String)globalMap.get("tFileList_1_CURRENT_FILEEXTENSION"))}&lt;/PRE&gt; 
&lt;BR /&gt;Hope you make it clear. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Pedro</description>
      <pubDate>Wed, 21 Mar 2012 01:42:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/image-resize-problem-with-ImageMagick-in-tSystem/m-p/2355902#M121542</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-21T01:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: image resize - problem with ImageMagick in tSystem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/image-resize-problem-with-ImageMagick-in-tSystem/m-p/2355903#M121543</link>
      <description>Thanks for correcting me.  I think I got your point.  I tried it like the one you showed.&lt;BR /&gt;Here's the error msg I got:&lt;BR /&gt;Magick: unable to open image ` -resize 64x64! ': No such file or directory @ error/blob.c/OpenBlob/2589.&lt;BR /&gt;Magick: no decode delegate for this image format ` -resize 64x64! ' @ error/constitute.c/ReadImage/532.&lt;BR /&gt;&lt;BR /&gt;I also tried to include that ` -resize 64x64! ' with other parts.  But it still failed.  Really appreciate your advice!!!&lt;BR /&gt;Thanks!!!</description>
      <pubDate>Wed, 21 Mar 2012 16:07:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/image-resize-problem-with-ImageMagick-in-tSystem/m-p/2355903#M121543</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-21T16:07:34Z</dc:date>
    </item>
  </channel>
</rss>

