<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: JAI vs. ImageMagick image resizing</title>
	<atom:link href="http://www.darcynorman.net/2005/03/15/jai-vs-imagemagick-image-resizing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.darcynorman.net/2005/03/15/jai-vs-imagemagick-image-resizing/</link>
	<description>ce n'est pas la connaissance.</description>
	<pubDate>Tue, 07 Oct 2008 23:20:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Jeans</title>
		<link>http://www.darcynorman.net/2005/03/15/jai-vs-imagemagick-image-resizing/#comment-193087</link>
		<dc:creator>Jeans</dc:creator>
		<pubDate>Mon, 15 Sep 2008 12:39:10 +0000</pubDate>
		<guid isPermaLink="false">1039982345#comment-193087</guid>
		<description>Hi.

we've had much probs with ImageIO.read() - our application / javaVM halted COMPLETELY when using this on some pictures - we run imageMagick "correctimage" before reading with ImageIO.read().
Perhaps this has nothing to do with your error (color conversion), but perhaps it helps on some problems.
(If we got errormessages from ImageIO.read - in most cases they are random but had nothing to do with the real problem on current image)....</description>
		<content:encoded><![CDATA[<p>Hi.</p>
<p>we&#8217;ve had much probs with ImageIO.read() - our application / javaVM halted COMPLETELY when using this on some pictures - we run imageMagick &#8220;correctimage&#8221; before reading with ImageIO.read().<br />
Perhaps this has nothing to do with your error (color conversion), but perhaps it helps on some problems.<br />
(If we got errormessages from ImageIO.read - in most cases they are random but had nothing to do with the real problem on current image)&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kanwar</title>
		<link>http://www.darcynorman.net/2005/03/15/jai-vs-imagemagick-image-resizing/#comment-192701</link>
		<dc:creator>kanwar</dc:creator>
		<pubDate>Mon, 01 Sep 2008 07:33:56 +0000</pubDate>
		<guid isPermaLink="false">1039982345#comment-192701</guid>
		<description>Hi Guys,
i think this is a very nice thread going on here, 
i am running into a problem here
i used exec and created jpg's from other formats like eps and ai, 
jpg's created were all fine , opens properly from all viewers, but when i try to read them through java ImageIO.read(..)
it fails , it give this exception
sun.awt.image.ImageFormatException: Unsupported color conversion request
	at sun.awt.image.JPEGImageDecoder.readImage(Native Method)
	at sun.awt.image.JPEGImageDecoder.produceImage(Unknown Source)
	at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
	at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
	at sun.awt.image.ImageFetcher.run(Unknown Source)
sun.awt.image.ImageFormatException: Unsupported color conversion request
	at sun.awt.image.JPEGImageDecoder.readImage(Native Method)
	at sun.awt.image.JPEGImageDecoder.produceImage(Unknown Source)
	at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
	at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
	at sun.awt.image.ImageFetcher.run(Unknown Source)

PLEASE HELP, i need this ASAP done</description>
		<content:encoded><![CDATA[<p>Hi Guys,<br />
i think this is a very nice thread going on here,<br />
i am running into a problem here<br />
i used exec and created jpg&#8217;s from other formats like eps and ai,<br />
jpg&#8217;s created were all fine , opens properly from all viewers, but when i try to read them through java ImageIO.read(..)<br />
it fails , it give this exception<br />
sun.awt.image.ImageFormatException: Unsupported color conversion request<br />
	at sun.awt.image.JPEGImageDecoder.readImage(Native Method)<br />
	at sun.awt.image.JPEGImageDecoder.produceImage(Unknown Source)<br />
	at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)<br />
	at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)<br />
	at sun.awt.image.ImageFetcher.run(Unknown Source)<br />
sun.awt.image.ImageFormatException: Unsupported color conversion request<br />
	at sun.awt.image.JPEGImageDecoder.readImage(Native Method)<br />
	at sun.awt.image.JPEGImageDecoder.produceImage(Unknown Source)<br />
	at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)<br />
	at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)<br />
	at sun.awt.image.ImageFetcher.run(Unknown Source)</p>
<p>PLEASE HELP, i need this ASAP done</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thilo</title>
		<link>http://www.darcynorman.net/2005/03/15/jai-vs-imagemagick-image-resizing/#comment-182634</link>
		<dc:creator>Thilo</dc:creator>
		<pubDate>Sun, 01 Jun 2008 19:19:24 +0000</pubDate>
		<guid isPermaLink="false">1039982345#comment-182634</guid>
		<description>Hi @all,
since years I'm successfully using ImageMagick via Runtime#exec on Windows, OS X and Linux. It's very stable and quick. Fine!
But there is one problem I couldn't solve yet: If the path of an image contains one or more spaces, the command fails. I've tried various possibilities of escaping, but no success! I've tested it on OS X for  now.

Is there anybody who has an hint for me?

Best regards
Thilo</description>
		<content:encoded><![CDATA[<p>Hi @all,<br />
since years I&#8217;m successfully using ImageMagick via Runtime#exec on Windows, OS X and Linux. It&#8217;s very stable and quick. Fine!<br />
But there is one problem I couldn&#8217;t solve yet: If the path of an image contains one or more spaces, the command fails. I&#8217;ve tried various possibilities of escaping, but no success! I&#8217;ve tested it on OS X for  now.</p>
<p>Is there anybody who has an hint for me?</p>
<p>Best regards<br />
Thilo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vpetreski</title>
		<link>http://www.darcynorman.net/2005/03/15/jai-vs-imagemagick-image-resizing/#comment-181780</link>
		<dc:creator>vpetreski</dc:creator>
		<pubDate>Tue, 29 Apr 2008 19:45:27 +0000</pubDate>
		<guid isPermaLink="false">1039982345#comment-181780</guid>
		<description>For pure java and high quality resize:

http://www.comesolvego.com/2008/04/29/resize-images-with-java-high-quality-and-working-solution/</description>
		<content:encoded><![CDATA[<p>For pure java and high quality resize:</p>
<p><a href="http://www.comesolvego.com/2008/04/29/resize-images-with-java-high-quality-and-working-solution/" rel="nofollow">http://www.comesolvego.com/2008/04/29/resize-images-with-java-high-quality-and-working-solution/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: krishna</title>
		<link>http://www.darcynorman.net/2005/03/15/jai-vs-imagemagick-image-resizing/#comment-177303</link>
		<dc:creator>krishna</dc:creator>
		<pubDate>Mon, 11 Feb 2008 14:59:04 +0000</pubDate>
		<guid isPermaLink="false">1039982345#comment-177303</guid>
		<description>Hey,
I got it working...Some how it wasn't working for me using runtime exec.
I tried with Process builder class and it worked.
Here is the code for your reference.

try {
		
		String strArr[]={ "/usr/local/ImageMagick-6.3.7/bin/convert",
                "testimage.jpg",
                "-resize",
                "96x","imagetoresize.jpg"};
		ProcessBuilder pb = new ProcessBuilder(strArr);
	 
                                               //I need this environment variable in my path...This step is optional.
			Map  env = pb.environment();
			
			env.put( "LD_LIBRARY_PATH", ":/usr/local/ImageMagick-6.3.7/lib" );
		
			
			pb.redirectErrorStream( true );
			
			Process p = pb.start();

		
						
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}</description>
		<content:encoded><![CDATA[<p>Hey,<br />
I got it working&#8230;Some how it wasn&#8217;t working for me using runtime exec.<br />
I tried with Process builder class and it worked.<br />
Here is the code for your reference.</p>
<p>try {</p>
<p>		String strArr[]={ &#8220;/usr/local/ImageMagick-6.3.7/bin/convert&#8221;,<br />
                &#8220;testimage.jpg&#8221;,<br />
                &#8220;-resize&#8221;,<br />
                &#8220;96x&#8221;,&#8221;imagetoresize.jpg&#8221;};<br />
		ProcessBuilder pb = new ProcessBuilder(strArr);</p>
<p>                                               //I need this environment variable in my path&#8230;This step is optional.<br />
			Map  env = pb.environment();</p>
<p>			env.put( &#8220;LD_LIBRARY_PATH&#8221;, &#8220;:/usr/local/ImageMagick-6.3.7/lib&#8221; );</p>
<p>			pb.redirectErrorStream( true );</p>
<p>			Process p = pb.start();</p>
<p>		} catch (Exception e) {<br />
			// TODO Auto-generated catch block<br />
			e.printStackTrace();<br />
		}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: krishna</title>
		<link>http://www.darcynorman.net/2005/03/15/jai-vs-imagemagick-image-resizing/#comment-176352</link>
		<dc:creator>krishna</dc:creator>
		<pubDate>Fri, 08 Feb 2008 14:13:45 +0000</pubDate>
		<guid isPermaLink="false">1039982345#comment-176352</guid>
		<description>Hi
I am using Imagemagick  6.3.7 on solaris.I tried the above code and I get the following
output from error stream.
 no decode delegate for this image format `myimage.jpg'.
 missing an image filename `resizeimage.jpg'.
I am trying to resize myimage.jpg to resizeimage.jpg.

I have no clue why its happning.
Can somebody help?</description>
		<content:encoded><![CDATA[<p>Hi<br />
I am using Imagemagick  6.3.7 on solaris.I tried the above code and I get the following<br />
output from error stream.<br />
 no decode delegate for this image format `myimage.jpg&#8217;.<br />
 missing an image filename `resizeimage.jpg&#8217;.<br />
I am trying to resize myimage.jpg to resizeimage.jpg.</p>
<p>I have no clue why its happning.<br />
Can somebody help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Bäckstrand</title>
		<link>http://www.darcynorman.net/2005/03/15/jai-vs-imagemagick-image-resizing/#comment-168995</link>
		<dc:creator>John Bäckstrand</dc:creator>
		<pubDate>Tue, 22 Jan 2008 10:36:06 +0000</pubDate>
		<guid isPermaLink="false">1039982345#comment-168995</guid>
		<description>Argh!  

I've spent atleast 40 hours on some JAI image-resizing/watermarking code, and now I realize it is completely unusable for animations!

I should have gone with imagemagick to start with. Now, using imagemagick instead isn't a big deal, but it is annoying to switch between JAI and im, and I dont like depending no external executables. I did read this page earlier though, and I solved the scaling problems kinda nicely with JAI, by "cheating" via multiple small downscaling steps, instead of one big. This is sometimes done in Photoshop på upsize images for example, but it also works to remove aliasing when downsizing.</description>
		<content:encoded><![CDATA[<p>Argh!  </p>
<p>I&#8217;ve spent atleast 40 hours on some JAI image-resizing/watermarking code, and now I realize it is completely unusable for animations!</p>
<p>I should have gone with imagemagick to start with. Now, using imagemagick instead isn&#8217;t a big deal, but it is annoying to switch between JAI and im, and I dont like depending no external executables. I did read this page earlier though, and I solved the scaling problems kinda nicely with JAI, by &#8220;cheating&#8221; via multiple small downscaling steps, instead of one big. This is sometimes done in Photoshop på upsize images for example, but it also works to remove aliasing when downsizing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.darcynorman.net/2005/03/15/jai-vs-imagemagick-image-resizing/#comment-153822</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Tue, 18 Dec 2007 08:53:08 +0000</pubDate>
		<guid isPermaLink="false">1039982345#comment-153822</guid>
		<description>Maybe a bit late, but thanks for that information, you saved me a lot of time ;-)</description>
		<content:encoded><![CDATA[<p>Maybe a bit late, but thanks for that information, you saved me a lot of time <img src='http://www.darcynorman.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pascal</title>
		<link>http://www.darcynorman.net/2005/03/15/jai-vs-imagemagick-image-resizing/#comment-122555</link>
		<dc:creator>Pascal</dc:creator>
		<pubDate>Mon, 08 Oct 2007 09:54:26 +0000</pubDate>
		<guid isPermaLink="false">1039982345#comment-122555</guid>
		<description>Hallo,
this is a little OT, but not more than my previous spekers ;o)

I dont know JAI, but I´ve a question about using ImageMagick from my java application:

When i need to do frequently a lot of (parallel) rendering jobs with ImageMagick, would it be better (faster, more stable) to use Process Execution or JNI (JMaigic)?

Regards,
Pascal</description>
		<content:encoded><![CDATA[<p>Hallo,<br />
this is a little OT, but not more than my previous spekers ;o)</p>
<p>I dont know JAI, but I´ve a question about using ImageMagick from my java application:</p>
<p>When i need to do frequently a lot of (parallel) rendering jobs with ImageMagick, would it be better (faster, more stable) to use Process Execution or JNI (JMaigic)?</p>
<p>Regards,<br />
Pascal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Narayana</title>
		<link>http://www.darcynorman.net/2005/03/15/jai-vs-imagemagick-image-resizing/#comment-109072</link>
		<dc:creator>Narayana</dc:creator>
		<pubDate>Tue, 28 Aug 2007 12:10:23 +0000</pubDate>
		<guid isPermaLink="false">1039982345#comment-109072</guid>
		<description>Hi, 

can any one please send me the code to generate a thumbnail image using JAI api. I tried the following, but I am unable to find the thumbnail image :(.

http://www.evolt.org/article/Image_Manipulation_with_CFMX_and_JAI/18/33907/index.html

Thanks in advance.

regards
Narayan</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>can any one please send me the code to generate a thumbnail image using JAI api. I tried the following, but I am unable to find the thumbnail image :(.</p>
<p><a href="http://www.evolt.org/article/Image_Manipulation_with_CFMX_and_JAI/18/33907/index.html" rel="nofollow">http://www.evolt.org/article/Image_Manipulation_with_CFMX_and_JAI/18/33907/index.html</a></p>
<p>Thanks in advance.</p>
<p>regards<br />
Narayan</p>
]]></content:encoded>
	</item>
</channel>
</rss>
