<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/1.5.1.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: convert: Non-conforming drawing primitive definition `image&#8217;.</title>
	<link>http://www.andreaswacker.com/blog/2007/09/08/convert-non-conforming-drawing-primitive-definition-image/</link>
	<description>weblog</description>
	<pubDate>Fri, 12 Mar 2010 01:34:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.1.2</generator>

	<item>
		<title>by: Oscar</title>
		<link>http://www.andreaswacker.com/blog/2007/09/08/convert-non-conforming-drawing-primitive-definition-image/#comment-2287</link>
		<pubDate>Tue, 03 Feb 2009 20:07:35 +0000</pubDate>
		<guid>http://www.andreaswacker.com/blog/2007/09/08/convert-non-conforming-drawing-primitive-definition-image/#comment-2287</guid>
					<description>I am sooo glad that Google brought me to your site. After installing a new server my script stopped working...and this was the solution!</description>
		<content:encoded><![CDATA[	<p>I am sooo glad that Google brought me to your site. After installing a new server my script stopped working&#8230;and this was the solution!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Chris Wilson</title>
		<link>http://www.andreaswacker.com/blog/2007/09/08/convert-non-conforming-drawing-primitive-definition-image/#comment-2252</link>
		<pubDate>Sat, 27 Sep 2008 21:21:06 +0000</pubDate>
		<guid>http://www.andreaswacker.com/blog/2007/09/08/convert-non-conforming-drawing-primitive-definition-image/#comment-2252</guid>
					<description>I finally discovered that ImageMagick (and therefore RMagick/Magick) does not work with font file paths that start with a slash (i.e. absolute paths on Unix). It does work with relative paths though, so I had to convert all my absolute paths to relative, like this:

    font_path = File.join(RAILS_ROOT, &quot;lib&quot;, &quot;fonts&quot;, &quot;cursif&quot;, &quot;Cursif.ttf&quot;)
    
    if (font_path[0,1] == '/')
      font_path = Pathname.new(font_path).relative_path_from(Pathname.pwd)
    end

and then it works :-)</description>
		<content:encoded><![CDATA[	<p>I finally discovered that ImageMagick (and therefore RMagick/Magick) does not work with font file paths that start with a slash (i.e. absolute paths on Unix). It does work with relative paths though, so I had to convert all my absolute paths to relative, like this:</p>
	<p>    font_path = File.join(RAILS_ROOT, &#8220;lib&#8221;, &#8220;fonts&#8221;, &#8220;cursif&#8221;, &#8220;Cursif.ttf&#8221;)</p>
	<p>    if (font_path[0,1] == &#8216;/&#8217;)<br />
      font_path = Pathname.new(font_path).relative_path_from(Pathname.pwd)<br />
    end</p>
	<p>and then it works <img src='http://www.andreaswacker.com/blog/wp-images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Lasse</title>
		<link>http://www.andreaswacker.com/blog/2007/09/08/convert-non-conforming-drawing-primitive-definition-image/#comment-2222</link>
		<pubDate>Thu, 10 Apr 2008 02:21:12 +0000</pubDate>
		<guid>http://www.andreaswacker.com/blog/2007/09/08/convert-non-conforming-drawing-primitive-definition-image/#comment-2222</guid>
					<description>Well your 20 just caused me another 5... Not that I'm holding you as responsible!
but I've just set the permissions for the directory to 777 but i doesn't work! I've even tried with other directories. But it doesn't help. I'll be back with a solution as soon as I fine one (if i remember).

- Lasse</description>
		<content:encoded><![CDATA[	<p>Well your 20 just caused me another 5&#8230; Not that I&#8217;m holding you as responsible!<br />
but I&#8217;ve just set the permissions for the directory to 777 but i doesn&#8217;t work! I&#8217;ve even tried with other directories. But it doesn&#8217;t help. I&#8217;ll be back with a solution as soon as I fine one (if i remember).</p>
	<p>- Lasse
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Robert</title>
		<link>http://www.andreaswacker.com/blog/2007/09/08/convert-non-conforming-drawing-primitive-definition-image/#comment-2214</link>
		<pubDate>Sat, 22 Mar 2008 12:53:57 +0000</pubDate>
		<guid>http://www.andreaswacker.com/blog/2007/09/08/convert-non-conforming-drawing-primitive-definition-image/#comment-2214</guid>
					<description>Great explanation Andreas, thanks !!</description>
		<content:encoded><![CDATA[	<p>Great explanation Andreas, thanks !!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Joe</title>
		<link>http://www.andreaswacker.com/blog/2007/09/08/convert-non-conforming-drawing-primitive-definition-image/#comment-2186</link>
		<pubDate>Sat, 02 Feb 2008 03:09:54 +0000</pubDate>
		<guid>http://www.andreaswacker.com/blog/2007/09/08/convert-non-conforming-drawing-primitive-definition-image/#comment-2186</guid>
					<description>Thank you so much! I've wasted much more than 20 - but suspect it would have kept me up all night.</description>
		<content:encoded><![CDATA[	<p>Thank you so much! I&#8217;ve wasted much more than 20 - but suspect it would have kept me up all night.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Kyle</title>
		<link>http://www.andreaswacker.com/blog/2007/09/08/convert-non-conforming-drawing-primitive-definition-image/#comment-2156</link>
		<pubDate>Fri, 05 Oct 2007 17:38:09 +0000</pubDate>
		<guid>http://www.andreaswacker.com/blog/2007/09/08/convert-non-conforming-drawing-primitive-definition-image/#comment-2156</guid>
					<description>Your twenty minutes saved me 10.</description>
		<content:encoded><![CDATA[	<p>Your twenty minutes saved me 10.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
