<?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, 17 Jan 2012 04:24:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Shinya</title>
		<link>http://blog.newsyland.com/mac-os-x/libtiff-error-in-matlab-when-attempting-to-use-imagemagick/comment-page-1#comment-19343</link>
		<dc:creator>Shinya</dc:creator>
		<pubDate>Tue, 17 Jan 2012 04:24:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.newsyland.com/?p=15#comment-19343</guid>
		<description>Hi,

I had the same problem with Student version of Matlab R2011a, and OS X 10.7.2
None of the solution above worked for me.

What worked is actually following.

&gt;&gt; !DYLD_LIBRARY_PATH=&#039;&#039;;/opt/local/bin/convert file1.eps file2.png

You don&#039;t need to change any environmental variables, and symbolic links from default settings. Matlab environmental variable is not altered by this command.
In the normal command line, DYLD_LIBRARY_PATH is not set, but it is set in MATLAB. By temporarily removing it, convert can load the library from the appropriate path.

Hope it helps someone.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I had the same problem with Student version of Matlab R2011a, and OS X 10.7.2<br />
None of the solution above worked for me.</p>
<p>What worked is actually following.</p>
<p>&gt;&gt; !DYLD_LIBRARY_PATH=&#8221;;/opt/local/bin/convert file1.eps file2.png</p>
<p>You don&#8217;t need to change any environmental variables, and symbolic links from default settings. Matlab environmental variable is not altered by this command.<br />
In the normal command line, DYLD_LIBRARY_PATH is not set, but it is set in MATLAB. By temporarily removing it, convert can load the library from the appropriate path.</p>
<p>Hope it helps someone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matlab</title>
		<link>http://blog.newsyland.com/mac-os-x/libtiff-error-in-matlab-when-attempting-to-use-imagemagick/comment-page-1#comment-14976</link>
		<dc:creator>matlab</dc:creator>
		<pubDate>Mon, 05 Sep 2011 09:47:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.newsyland.com/?p=15#comment-14976</guid>
		<description>Great Information &amp; great Tip.</description>
		<content:encoded><![CDATA[<p>Great Information &amp; great Tip.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rethabile khutlang</title>
		<link>http://blog.newsyland.com/mac-os-x/libtiff-error-in-matlab-when-attempting-to-use-imagemagick/comment-page-1#comment-12722</link>
		<dc:creator>rethabile khutlang</dc:creator>
		<pubDate>Tue, 03 May 2011 13:47:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.newsyland.com/?p=15#comment-12722</guid>
		<description>Hi
I am new to imagemagick, but have been using matlab for some time. I use matlab 7.10.0(R2010a) and installed imagemagick via mac ports, on a mac. To crop images in matlab using imagemagick, I followed thread above.

when inputting:
setenv(&#039;DYLD_LIBRARY_PATH&#039;,[&#039;/opt/local/lib/:&#039; getenv(&#039;DYLD_LIBRARY_PATH&#039;)])

[s,w] = system(&#039;/opt/local/bin/convert -crop 400x200+0+0 bb1.tif bb2.tif&#039;);

I get error:
dyld: Symbol not found: __cg_jpeg_resync_to_restart
  Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
  Expected in: /opt/local/lib//libjpeg.8.dylib
 in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO</description>
		<content:encoded><![CDATA[<p>Hi<br />
I am new to imagemagick, but have been using matlab for some time. I use matlab 7.10.0(R2010a) and installed imagemagick via mac ports, on a mac. To crop images in matlab using imagemagick, I followed thread above.</p>
<p>when inputting:<br />
setenv(&#8216;DYLD_LIBRARY_PATH&#8217;,['/opt/local/lib/:' getenv('DYLD_LIBRARY_PATH')])</p>
<p>[s,w] = system(&#8216;/opt/local/bin/convert -crop 400&#215;200+0+0 bb1.tif bb2.tif&#8217;);</p>
<p>I get error:<br />
dyld: Symbol not found: __cg_jpeg_resync_to_restart<br />
  Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO<br />
  Expected in: /opt/local/lib//libjpeg.8.dylib<br />
 in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO</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-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>
</channel>
</rss>

