<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<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>apparently much happier in person</description>
	<lastBuildDate>Sat, 21 Nov 2009 17:45:12 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: JavaUser</title>
		<link>http://www.darcynorman.net/2005/03/15/jai-vs-imagemagick-image-resizing/#comment-195014</link>
		<dc:creator>JavaUser</dc:creator>
		<pubDate>Tue, 12 May 2009 03:35:59 +0000</pubDate>
		<guid isPermaLink="false">1039982345#comment-195014</guid>
		<description>ImageMagick is an excellent package.  However, you don&#039;t need to use it to get top-quality scaled images.

Image.getScaledInstance(..., Image.SCALE_AREA_AVERAGING) gives you the maximum-possible scaling quality, and you don&#039;t need to mess around with ImageMagick.  It&#039;s slow, but I haven&#039;t done performance comparisons, so I don&#039;t know how much slower than IM.  If you want top-quality resizing, without needing to use external binaries, Image.getScaledInstance(..., Image.SCALE_AREA_AVERAGING) is what you need.</description>
		<content:encoded><![CDATA[<p>ImageMagick is an excellent package.  However, you don&#8217;t need to use it to get top-quality scaled images.</p>
<p>Image.getScaledInstance(&#8230;, Image.SCALE_AREA_AVERAGING) gives you the maximum-possible scaling quality, and you don&#8217;t need to mess around with ImageMagick.  It&#8217;s slow, but I haven&#8217;t done performance comparisons, so I don&#8217;t know how much slower than IM.  If you want top-quality resizing, without needing to use external binaries, Image.getScaledInstance(&#8230;, Image.SCALE_AREA_AVERAGING) is what you need.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean Kleinjung</title>
		<link>http://www.darcynorman.net/2005/03/15/jai-vs-imagemagick-image-resizing/#comment-194427</link>
		<dc:creator>Sean Kleinjung</dc:creator>
		<pubDate>Wed, 04 Feb 2009 21:48:11 +0000</pubDate>
		<guid isPermaLink="false">1039982345#comment-194427</guid>
		<description>It is possible to get ImageMagick&#039;s level of quality when using JAI to resize images. I have written a tool called ThumbMaster which is a new Interpolation implementation that uses the same algorithm as ImageMagick. It allows you resize images using standard JAI APIs without the complexity and overhead of integrating with a command line tool. More information is available at the tool&#039;s website, devella.net/thumbmaster.

Full disclosure: I am the developer of ThumbMaster, and am posting this here because I do believe it is a relevant solution to the problems expressed by many of the above posters.</description>
		<content:encoded><![CDATA[<p>It is possible to get ImageMagick&#8217;s level of quality when using JAI to resize images. I have written a tool called ThumbMaster which is a new Interpolation implementation that uses the same algorithm as ImageMagick. It allows you resize images using standard JAI APIs without the complexity and overhead of integrating with a command line tool. More information is available at the tool&#8217;s website, devella.net/thumbmaster.</p>
<p>Full disclosure: I am the developer of ThumbMaster, and am posting this here because I do believe it is a relevant solution to the problems expressed by many of the above posters.</p>
]]></content:encoded>
	</item>
	<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&#039;ve had much probs with ImageIO.read() - our application / javaVM halted COMPLETELY when using this on some pictures - we run imageMagick &quot;correctimage&quot; 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() &#8211; our application / javaVM halted COMPLETELY when using this on some pictures &#8211; 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 &#8211; 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&#039;s from other formats like eps and ai, 
jpg&#039;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&#039;m successfully using ImageMagick via Runtime#exec on Windows, OS X and Linux. It&#039;s very stable and quick. Fine!
But there is one problem I couldn&#039;t solve yet: If the path of an image contains one or more spaces, the command fails. I&#039;ve tried various possibilities of escaping, but no success! I&#039;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&#039;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[]={ &quot;/usr/local/ImageMagick-6.3.7/bin/convert&quot;,
                &quot;testimage.jpg&quot;,
                &quot;-resize&quot;,
                &quot;96x&quot;,&quot;imagetoresize.jpg&quot;};
		ProcessBuilder pb = new ProcessBuilder(strArr);
	 
                                               //I need this environment variable in my path...This step is optional.
			Map  env = pb.environment();
			
			env.put( &quot;LD_LIBRARY_PATH&quot;, &quot;:/usr/local/ImageMagick-6.3.7/lib&quot; );
		
			
			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&#039;.
 missing an image filename `resizeimage.jpg&#039;.
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&#039;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&#039;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 &quot;cheating&quot; 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>
</channel>
</rss>
