<?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: libtiff error in Matlab when attempting to use ImageMagick</title>
	<atom:link href="http://blog.newsyland.com/original/libtiff-error-in-matlab-when-attempting-to-use-imagemagick/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.newsyland.com/mac-os-x/libtiff-error-in-matlab-when-attempting-to-use-imagemagick</link>
	<description>tail -f /dev/brain &#62;&#62; blog.newsyland.com</description>
	<lastBuildDate>Tue, 02 Feb 2010 16:08:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Kirk Ireson</title>
		<link>http://blog.newsyland.com/mac-os-x/libtiff-error-in-matlab-when-attempting-to-use-imagemagick/comment-page-1#comment-25</link>
		<dc:creator>Kirk Ireson</dc:creator>
		<pubDate>Wed, 09 Sep 2009 21:16:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.newsyland.com/?p=15#comment-25</guid>
		<description>Andy,

I want to mention that there&#039;s always more than one way to do something, and it may be easier for you to use the &lt;a href=&quot;http://www.imagemagick.org/script/convert.php&quot; rel=&quot;nofollow&quot;&gt;convert&lt;/a&gt; command from the &lt;a href=&quot;http://www.imagemagick.org/script/binary-releases.php#windows&quot; rel=&quot;nofollow&quot;&gt;ImageMagick&lt;/a&gt; toolbox, by calling it with a &lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/system.html&quot; rel=&quot;nofollow&quot;&gt;system&lt;/a&gt; call in Matlab.</description>
		<content:encoded><![CDATA[<p>Andy,</p>
<p>I want to mention that there&#8217;s always more than one way to do something, and it may be easier for you to use the <a href="http://www.imagemagick.org/script/convert.php" rel="nofollow">convert</a> command from the <a href="http://www.imagemagick.org/script/binary-releases.php#windows" rel="nofollow">ImageMagick</a> toolbox, by calling it with a <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/system.html" rel="nofollow">system</a> call in Matlab.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kirk Ireson</title>
		<link>http://blog.newsyland.com/mac-os-x/libtiff-error-in-matlab-when-attempting-to-use-imagemagick/comment-page-1#comment-24</link>
		<dc:creator>Kirk Ireson</dc:creator>
		<pubDate>Wed, 09 Sep 2009 18:05:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.newsyland.com/?p=15#comment-24</guid>
		<description>Andy,

The setenv command in Matlab &lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/setenv.html&quot; rel=&quot;nofollow&quot;&gt;is very much available on the Windows platform&lt;/a&gt;.

I don&#039;t understand that if it&#039;s just a newer version of libtiff you&#039;re trying to use, that you don&#039;t use that library &lt;a href=&quot;http://gnuwin32.sourceforge.net/packages/tiff.htm&quot; rel=&quot;nofollow&quot;&gt;compiled for Windows&lt;/a&gt;(!) My guess is you will probably not be able to use libraries from a different OS.  If you&#039;re really trying to do this, it seems such a specific thing you&#039;re trying to do that, again, I would recommend you contact Mathworks Tech Support if you can&#039;t find help anywhere else on-line.</description>
		<content:encoded><![CDATA[<p>Andy,</p>
<p>The setenv command in Matlab <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/setenv.html" rel="nofollow">is very much available on the Windows platform</a>.</p>
<p>I don&#8217;t understand that if it&#8217;s just a newer version of libtiff you&#8217;re trying to use, that you don&#8217;t use that library <a href="http://gnuwin32.sourceforge.net/packages/tiff.htm" rel="nofollow">compiled for Windows</a>(!) My guess is you will probably not be able to use libraries from a different OS.  If you&#8217;re really trying to do this, it seems such a specific thing you&#8217;re trying to do that, again, I would recommend you contact Mathworks Tech Support if you can&#8217;t find help anywhere else on-line.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://blog.newsyland.com/mac-os-x/libtiff-error-in-matlab-when-attempting-to-use-imagemagick/comment-page-1#comment-23</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Wed, 09 Sep 2009 17:54:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.newsyland.com/?p=15#comment-23</guid>
		<description>Hi admin, plz send me an email. again you did not answer if mixing libraryies of operating systms woud cause problem or not AND you use setenv which is NOT on windows which is my matlab platform. Am I missing sth or you are not reading properly ?</description>
		<content:encoded><![CDATA[<p>Hi admin, plz send me an email. again you did not answer if mixing libraryies of operating systms woud cause problem or not AND you use setenv which is NOT on windows which is my matlab platform. Am I missing sth or you are not reading properly ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kirk Ireson</title>
		<link>http://blog.newsyland.com/mac-os-x/libtiff-error-in-matlab-when-attempting-to-use-imagemagick/comment-page-1#comment-22</link>
		<dc:creator>Kirk Ireson</dc:creator>
		<pubDate>Wed, 09 Sep 2009 16:06:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.newsyland.com/?p=15#comment-22</guid>
		<description>Andy,

The command I provided &lt;a href=&quot;http://blog.newsyland.com/original/libtiff-error-in-matlab-when-attempting-to-use-imagemagick#comment-98&quot; rel=&quot;nofollow&quot;&gt;above&lt;/a&gt; &lt;i&gt;should&lt;/i&gt; work to put the path of the library your trying to use before Matlab&#039;s libraries path (of course, your path won&#039;t be /opt/local/lib/).  You should also look into the &lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/libpointer.html&quot; rel=&quot;nofollow&quot;&gt;loadlibrary&lt;/a&gt; command.


As of version 7.9 (aka R2009b), there is a &lt;a href=&quot;http://www.mathworks.com/products/matlab/whatsnew.html&quot; rel=&quot;nofollow&quot;&gt;new&lt;/a&gt; &lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/tiffclass.html&quot; rel=&quot;nofollow&quot;&gt;Tiff Class&lt;/a&gt;, which acts as a gateway to the LibTIFF libarary.  I have that version, and just ran it and got this:

&lt;p class=&quot;code&quot;&gt;
&gt;&gt; Tiff.getVersion()
ans =
LIBTIFF, Version 3.7.1
Copyright (c) 1988-1996 Sam Leffler
Copyright (c) 1991-1996 Silicon Graphics, Inc.
&lt;/p&gt;

Version &lt;a href=&quot;http://themes.freshmeat.net/projects/libtiff/releases&quot; rel=&quot;nofollow&quot;&gt;3.7.1 came out in&lt;/a&gt;... *gulps* 2004!!


I tried to load a newer version (I&#039;m on a Mac, so am using the latest from MacPorts) using the loadlibrary command, but ran into 64-bit problems.  Hope this info helps you somewhat. If you get really stuck, I&#039;d contact Mathworks support.</description>
		<content:encoded><![CDATA[<p>Andy,</p>
<p>The command I provided <a href="http://blog.newsyland.com/original/libtiff-error-in-matlab-when-attempting-to-use-imagemagick#comment-98" rel="nofollow">above</a> <i>should</i> work to put the path of the library your trying to use before Matlab&#8217;s libraries path (of course, your path won&#8217;t be /opt/local/lib/).  You should also look into the <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/libpointer.html" rel="nofollow">loadlibrary</a> command.</p>
<p>As of version 7.9 (aka R2009b), there is a <a href="http://www.mathworks.com/products/matlab/whatsnew.html" rel="nofollow">new</a> <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/tiffclass.html" rel="nofollow">Tiff Class</a>, which acts as a gateway to the LibTIFF libarary.  I have that version, and just ran it and got this:</p>
<p class="code">
>> Tiff.getVersion()<br />
ans =<br />
LIBTIFF, Version 3.7.1<br />
Copyright (c) 1988-1996 Sam Leffler<br />
Copyright (c) 1991-1996 Silicon Graphics, Inc.
</p>
<p>Version <a href="http://themes.freshmeat.net/projects/libtiff/releases" rel="nofollow">3.7.1 came out in</a>&#8230; *gulps* 2004!!</p>
<p>I tried to load a newer version (I&#8217;m on a Mac, so am using the latest from MacPorts) using the loadlibrary command, but ran into 64-bit problems.  Hope this info helps you somewhat. If you get really stuck, I&#8217;d contact Mathworks support.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://blog.newsyland.com/mac-os-x/libtiff-error-in-matlab-when-attempting-to-use-imagemagick/comment-page-1#comment-21</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Wed, 09 Sep 2009 07:09:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.newsyland.com/?p=15#comment-21</guid>
		<description>I want to load current libtiff in matlab 2009a running on windows.

Does it have to be windows compiled libtiff or can I also use linux compiled libtiff, ie DLL or .so file ? Can someone PROFICIENT with this procedure test a version and post instructions that actually work as well as some debugging information ? If libtiff has dependencies, how to debug them  or  discover them from error messages ?

Thanks to the star who can help

Andy</description>
		<content:encoded><![CDATA[<p>I want to load current libtiff in matlab 2009a running on windows.</p>
<p>Does it have to be windows compiled libtiff or can I also use linux compiled libtiff, ie DLL or .so file ? Can someone PROFICIENT with this procedure test a version and post instructions that actually work as well as some debugging information ? If libtiff has dependencies, how to debug them  or  discover them from error messages ?</p>
<p>Thanks to the star who can help</p>
<p>Andy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: steve</title>
		<link>http://blog.newsyland.com/mac-os-x/libtiff-error-in-matlab-when-attempting-to-use-imagemagick/comment-page-1#comment-20</link>
		<dc:creator>steve</dc:creator>
		<pubDate>Tue, 04 Aug 2009 23:27:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.newsyland.com/?p=15#comment-20</guid>
		<description>Thanks, needed this to get matlab calling openjpeg.</description>
		<content:encoded><![CDATA[<p>Thanks, needed this to get matlab calling openjpeg.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Goodman</title>
		<link>http://blog.newsyland.com/mac-os-x/libtiff-error-in-matlab-when-attempting-to-use-imagemagick/comment-page-1#comment-19</link>
		<dc:creator>Daniel Goodman</dc:creator>
		<pubDate>Mon, 16 Feb 2009 23:32:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.newsyland.com/?p=15#comment-19</guid>
		<description>Sweet! This worked. Many thanks.</description>
		<content:encoded><![CDATA[<p>Sweet! This worked. Many thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kirk Ireson</title>
		<link>http://blog.newsyland.com/mac-os-x/libtiff-error-in-matlab-when-attempting-to-use-imagemagick/comment-page-1#comment-18</link>
		<dc:creator>Kirk Ireson</dc:creator>
		<pubDate>Mon, 16 Feb 2009 23:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.newsyland.com/?p=15#comment-18</guid>
		<description>Yes, tiff has some &#039;features&#039; (most of them unnecessary in my opinion, but I digress) and seems to be default for many programs (even Mac&#039;s Grab.app).

OK, I had mistakenly left the soft link from this original post in place when I tested the above. Good news is I have figured it out!:

Once for your session you need to do this:
&lt;code&gt;
setenv(&#039;DYLD_LIBRARY_PATH&#039;,[&#039;/opt/local/lib/:&#039; getenv(&#039;DYLD_LIBRARY_PATH&#039;)])
&lt;/code&gt;

Then call convert (e.g.):
&lt;code&gt;
[s,w] = system([&#039;/opt/local/bin/convert &#039;,pwd,&#039;/foo.png -rotate 90 &#039;,pwd,&#039;/foo2.png&#039;])
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Yes, tiff has some &#8216;features&#8217; (most of them unnecessary in my opinion, but I digress) and seems to be default for many programs (even Mac&#8217;s Grab.app).</p>
<p>OK, I had mistakenly left the soft link from this original post in place when I tested the above. Good news is I have figured it out!:</p>
<p>Once for your session you need to do this:<br />
<code><br />
setenv('DYLD_LIBRARY_PATH',['/opt/local/lib/:' getenv('DYLD_LIBRARY_PATH')])<br />
</code></p>
<p>Then call convert (e.g.):<br />
<code><br />
[s,w] = system(['/opt/local/bin/convert ',pwd,'/foo.png -rotate 90 ',pwd,'/foo2.png'])<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Goodman</title>
		<link>http://blog.newsyland.com/mac-os-x/libtiff-error-in-matlab-when-attempting-to-use-imagemagick/comment-page-1#comment-17</link>
		<dc:creator>Daniel Goodman</dc:creator>
		<pubDate>Mon, 16 Feb 2009 21:06:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.newsyland.com/?p=15#comment-17</guid>
		<description>Thanks for the reply.

TIFFs are, for better or for worse, a standard in many scientific disciplines, especially for microscopy and geographic data, so just swapping over to PNG is not an option. The TIFF format also has some unique features, like the way it handles metadata and multiple image frames per file.

Anyway, the code snip you sent me doesn&#039;t solve the problem, I get the same error whether or not I change the path environment variable.


In both cases, the error (same as my above post) is:

  dyld: Library not loaded: /opt/local/lib/libtiff.3.dylib

So I don&#039;t think the path has anything to do with it.</description>
		<content:encoded><![CDATA[<p>Thanks for the reply.</p>
<p>TIFFs are, for better or for worse, a standard in many scientific disciplines, especially for microscopy and geographic data, so just swapping over to PNG is not an option. The TIFF format also has some unique features, like the way it handles metadata and multiple image frames per file.</p>
<p>Anyway, the code snip you sent me doesn&#8217;t solve the problem, I get the same error whether or not I change the path environment variable.</p>
<p>In both cases, the error (same as my above post) is:</p>
<p>  dyld: Library not loaded: /opt/local/lib/libtiff.3.dylib</p>
<p>So I don&#8217;t think the path has anything to do with it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kirk Ireson</title>
		<link>http://blog.newsyland.com/mac-os-x/libtiff-error-in-matlab-when-attempting-to-use-imagemagick/comment-page-1#comment-16</link>
		<dc:creator>Kirk Ireson</dc:creator>
		<pubDate>Wed, 11 Feb 2009 04:25:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.newsyland.com/?p=15#comment-16</guid>
		<description>Yes, same thing happens to me. I was just going to tell you to not use *.tif/*.tiff files since *.png is better, but I spent a few seconds and found out this works.

1. Do NOT create (or undo) the softlink I describe above
2. Instead, set the environment path to the MacPorts library

Here&#039;s a code snip:

&lt;code&gt;
setenv(&#039;PATH&#039;, [&#039;/opt/local/lib/;&#039; getenv(&#039;PATH&#039;) ]);
[s,w] = system([&#039;/opt/local/bin/convert &#039;,pwd,&#039;/foo.png -rotate 90 &#039;,pwd,&#039;/foo2.png&#039;]);
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Yes, same thing happens to me. I was just going to tell you to not use *.tif/*.tiff files since *.png is better, but I spent a few seconds and found out this works.</p>
<p>1. Do NOT create (or undo) the softlink I describe above<br />
2. Instead, set the environment path to the MacPorts library</p>
<p>Here&#8217;s a code snip:</p>
<p><code><br />
setenv('PATH', ['/opt/local/lib/;' getenv('PATH') ]);<br />
[s,w] = system(['/opt/local/bin/convert ',pwd,'/foo.png -rotate 90 ',pwd,'/foo2.png']);<br />
</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>
