<?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: Fill patterns</title>
	<atom:link href="http://valokuva.org/?feed=rss2&#038;p=102" rel="self" type="application/rss+xml" />
	<link>http://valokuva.org/?p=102</link>
	<description>My Thoughts Exactly</description>
	<lastBuildDate>Fri, 03 Sep 2010 20:25:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Morgon</title>
		<link>http://valokuva.org/?p=102&#038;cpage=1#comment-19865</link>
		<dc:creator>Morgon</dc:creator>
		<pubDate>Sun, 02 May 2010 15:47:05 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/?p=102#comment-19865</guid>
		<description>I do hope Mikko (or anyone else who can help) still reads this particular post.

I&#039;m unable to get this working! PHP 5.3.2 with ImageMagick 6.6.1-5 and imagick 2.3.0 (and I&#039;ve even tried 3.0.0 RC1 with no luck).

Basically, the patterns are not working. Both PHP&#039;s example and this exact example (which is similar to the one on php.net) result in a white image (with the nice black border, of course).

Could it be my version of ImageMagick is too new? I see some &#039;deprecated&#039; warnings when building imagick against it.

Thanks!</description>
		<content:encoded><![CDATA[<p>I do hope Mikko (or anyone else who can help) still reads this particular post.</p>
<p>I&#8217;m unable to get this working! PHP 5.3.2 with ImageMagick 6.6.1-5 and imagick 2.3.0 (and I&#8217;ve even tried 3.0.0 RC1 with no luck).</p>
<p>Basically, the patterns are not working. Both PHP&#8217;s example and this exact example (which is similar to the one on php.net) result in a white image (with the nice black border, of course).</p>
<p>Could it be my version of ImageMagick is too new? I see some &#8216;deprecated&#8217; warnings when building imagick against it.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imagick blog &#187; Blog Archive &#187; Fill patterns</title>
		<link>http://valokuva.org/?p=102&#038;cpage=1#comment-18927</link>
		<dc:creator>Imagick blog &#187; Blog Archive &#187; Fill patterns</dc:creator>
		<pubDate>Sat, 16 Jan 2010 00:02:00 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/?p=102#comment-18927</guid>
		<description>[...] image is from http://www.photoeverywhere.co.uk/west/winterholiday/slides/iceformations5679.htm. PLAIN TEXT [...]</description>
		<content:encoded><![CDATA[<p>[...] image is from <a href="http://www.photoeverywhere.co.uk/west/winterholiday/slides/iceformations5679.htm" rel="nofollow" onclick="urchinTracker('/outgoing/www.photoeverywhere.co.uk/west/winterholiday/slides/iceformations5679.htm?referer=');">http://www.photoeverywhere.co.uk/west/winterholiday/slides/iceformations5679.htm</a>. PLAIN TEXT [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Faggot54</title>
		<link>http://valokuva.org/?p=102&#038;cpage=1#comment-17547</link>
		<dc:creator>Faggot54</dc:creator>
		<pubDate>Fri, 23 Oct 2009 01:59:39 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/?p=102#comment-17547</guid>
		<description>My concern is rather intentional or not, the tone and replies strike me as a desire to steer as clear away from rape as possible when the issue of rape and the consequences of are are central. ,</description>
		<content:encoded><![CDATA[<p>My concern is rather intentional or not, the tone and replies strike me as a desire to steer as clear away from rape as possible when the issue of rape and the consequences of are are central. ,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan</title>
		<link>http://valokuva.org/?p=102&#038;cpage=1#comment-17487</link>
		<dc:creator>Bryan</dc:creator>
		<pubDate>Tue, 20 Oct 2009 02:53:59 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/?p=102#comment-17487</guid>
		<description>How do you decypher the data? I tried to add this to your example:

/* Create a new imagick object */
$im = new Imagick(&#039;iceformations5679.JPG&#039;);

/* Create imagickdraw object */
$draw = new ImagickDraw();

/* Start a new pattern called &quot;ice&quot; */
$draw-&gt;pushPattern(&#039;ice&#039;, 0, 0, 50, 50);

/* Composite the image on the pattern */
$draw-&gt;composite(Imagick::COMPOSITE_OVER, 0, 0, 50, 50, $im);

/* Close the pattern */
$draw-&gt;popPattern();

/* Use the pattern called &quot;ice&quot; as the fill */
$draw-&gt;setFillPatternURL(&#039;#ice&#039;);

/* Set font size to 52 */
$draw-&gt;setFontSize(52);

/* Annotate some text */
$draw-&gt;annotation(5, 50, $text);

/* get the metrics */
$dimension = $im-&gt;queryFontMetrics($draw, $text);

/* Create a new canvas and white image */
$canvas = new Imagick();
$canvas-&gt;newImage($dimension[&#039;textWidth&#039;], $dimension[&#039;textHeight&#039;], &quot;white&quot;);

/* Add black border around the resulting image */
$canvas-&gt;borderImage(&#039;black&#039;, 1, 1);

/* Draw the ImagickDraw on to the canvas */
$canvas-&gt;drawImage($draw);

/* Set the format to PNG */
$canvas-&gt;setImageFormat(&#039;png&#039;);

/* Output the image */
header(&quot;Content-Type: image/png&quot;);
echo $canvas;
exit;

But the exclamation point gets cut off because it&#039;s not wide enough and the box is a bit tall as well.

-Bryan</description>
		<content:encoded><![CDATA[<p>How do you decypher the data? I tried to add this to your example:</p>
<p>/* Create a new imagick object */<br />
$im = new Imagick(&#8216;iceformations5679.JPG&#8217;);</p>
<p>/* Create imagickdraw object */<br />
$draw = new ImagickDraw();</p>
<p>/* Start a new pattern called &#8220;ice&#8221; */<br />
$draw-&gt;pushPattern(&#8216;ice&#8217;, 0, 0, 50, 50);</p>
<p>/* Composite the image on the pattern */<br />
$draw-&gt;composite(Imagick::COMPOSITE_OVER, 0, 0, 50, 50, $im);</p>
<p>/* Close the pattern */<br />
$draw-&gt;popPattern();</p>
<p>/* Use the pattern called &#8220;ice&#8221; as the fill */<br />
$draw-&gt;setFillPatternURL(&#8216;#ice&#8217;);</p>
<p>/* Set font size to 52 */<br />
$draw-&gt;setFontSize(52);</p>
<p>/* Annotate some text */<br />
$draw-&gt;annotation(5, 50, $text);</p>
<p>/* get the metrics */<br />
$dimension = $im-&gt;queryFontMetrics($draw, $text);</p>
<p>/* Create a new canvas and white image */<br />
$canvas = new Imagick();<br />
$canvas-&gt;newImage($dimension['textWidth'], $dimension['textHeight'], &#8220;white&#8221;);</p>
<p>/* Add black border around the resulting image */<br />
$canvas-&gt;borderImage(&#8216;black&#8217;, 1, 1);</p>
<p>/* Draw the ImagickDraw on to the canvas */<br />
$canvas-&gt;drawImage($draw);</p>
<p>/* Set the format to PNG */<br />
$canvas-&gt;setImageFormat(&#8216;png&#8217;);</p>
<p>/* Output the image */<br />
header(&#8220;Content-Type: image/png&#8221;);<br />
echo $canvas;<br />
exit;</p>
<p>But the exclamation point gets cut off because it&#8217;s not wide enough and the box is a bit tall as well.</p>
<p>-Bryan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikko Koppanen</title>
		<link>http://valokuva.org/?p=102&#038;cpage=1#comment-17454</link>
		<dc:creator>Mikko Koppanen</dc:creator>
		<pubDate>Mon, 19 Oct 2009 07:22:47 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/?p=102#comment-17454</guid>
		<description>Bryan,

You can use http://uk2.php.net/manual/en/function.imagick-queryfontmetrics.php to get query information about the text.</description>
		<content:encoded><![CDATA[<p>Bryan,</p>
<p>You can use <a href="http://uk2.php.net/manual/en/function.imagick-queryfontmetrics.php" rel="nofollow" onclick="urchinTracker('/outgoing/uk2.php.net/manual/en/function.imagick-queryfontmetrics.php?referer=');">http://uk2.php.net/manual/en/function.imagick-queryfontmetrics.php</a> to get query information about the text.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan</title>
		<link>http://valokuva.org/?p=102&#038;cpage=1#comment-17446</link>
		<dc:creator>Bryan</dc:creator>
		<pubDate>Mon, 19 Oct 2009 00:16:44 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/?p=102#comment-17446</guid>
		<description>Hi Mikko,
  Your example is great, much quicker than using the convert exec commands from inside php. However, I need to know the size of the ImagickDraw object.

In your example, instead of hard coding the text, I have it as a variable that the user can enter in manually.

/* Annotate some text */
$draw-&gt;annotation(5, 50, $text);

Imagick() objects have the function getImageHeight and getImageWidth to know the dimensions, but ImagickDraw objects do not. So how can I get the proper size of the $text in the $draw object to use for the newImage call for the Imagick canvas?

-Bryan</description>
		<content:encoded><![CDATA[<p>Hi Mikko,<br />
  Your example is great, much quicker than using the convert exec commands from inside php. However, I need to know the size of the ImagickDraw object.</p>
<p>In your example, instead of hard coding the text, I have it as a variable that the user can enter in manually.</p>
<p>/* Annotate some text */<br />
$draw-&gt;annotation(5, 50, $text);</p>
<p>Imagick() objects have the function getImageHeight and getImageWidth to know the dimensions, but ImagickDraw objects do not. So how can I get the proper size of the $text in the $draw object to use for the newImage call for the Imagick canvas?</p>
<p>-Bryan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oto</title>
		<link>http://valokuva.org/?p=102&#038;cpage=1#comment-17407</link>
		<dc:creator>Oto</dc:creator>
		<pubDate>Sat, 17 Oct 2009 16:57:59 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/?p=102#comment-17407</guid>
		<description>How can I add pattern to image imagick object, not to text or any ImagickDraw object?
Also if it is possible to do blend like multiply, hard light or something like that?</description>
		<content:encoded><![CDATA[<p>How can I add pattern to image imagick object, not to text or any ImagickDraw object?<br />
Also if it is possible to do blend like multiply, hard light or something like that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SImon Says</title>
		<link>http://valokuva.org/?p=102&#038;cpage=1#comment-15116</link>
		<dc:creator>SImon Says</dc:creator>
		<pubDate>Fri, 24 Jul 2009 16:26:09 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/?p=102#comment-15116</guid>
		<description>@Sprille: i&#039;m exactly looking for the same thing! what did you find out about it??</description>
		<content:encoded><![CDATA[<p>@Sprille: i&#8217;m exactly looking for the same thing! what did you find out about it??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sprille</title>
		<link>http://valokuva.org/?p=102&#038;cpage=1#comment-9386</link>
		<dc:creator>Sprille</dc:creator>
		<pubDate>Mon, 16 Feb 2009 00:31:56 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/?p=102#comment-9386</guid>
		<description>Great work your doing here, i finanly managed to get my imagemagick up and running, thanks.

Also a lot of usefull samples :-)

One thing missing is how to create dynamic text, without the need to know the image size. Is that even possible ?

Got a sample code for the dos convert method, that goes like this:

convert -background none -fill DodgerBlue -stroke black   -font Candice -pointsize $pointsize  label:&quot;Hello World&quot;  -trim +repage   ( +clone -alpha extract -blur 0x8  -shade 110x30 -normalize  -function polynomial  3.5,-5.05,2.05,0.3   -alpha On )  -compose HardLight  -composite    aqua_text.png

This produces an image of any size depending on the text passed to it, might as well had been something else, and image would just resize to fit the text.

Any possibilities that you could translate this ?, or point me to somewhere i could read up on it.

Anyway, thanks for the guides, and the dll&#039;s.</description>
		<content:encoded><![CDATA[<p>Great work your doing here, i finanly managed to get my imagemagick up and running, thanks.</p>
<p>Also a lot of usefull samples <img src='http://valokuva.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>One thing missing is how to create dynamic text, without the need to know the image size. Is that even possible ?</p>
<p>Got a sample code for the dos convert method, that goes like this:</p>
<p>convert -background none -fill DodgerBlue -stroke black   -font Candice -pointsize $pointsize  label:&#8221;Hello World&#8221;  -trim +repage   ( +clone -alpha extract -blur 0&#215;8  -shade 110&#215;30 -normalize  -function polynomial  3.5,-5.05,2.05,0.3   -alpha On )  -compose HardLight  -composite    aqua_text.png</p>
<p>This produces an image of any size depending on the text passed to it, might as well had been something else, and image would just resize to fit the text.</p>
<p>Any possibilities that you could translate this ?, or point me to somewhere i could read up on it.</p>
<p>Anyway, thanks for the guides, and the dll&#8217;s.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: issin</title>
		<link>http://valokuva.org/?p=102&#038;cpage=1#comment-7992</link>
		<dc:creator>issin</dc:creator>
		<pubDate>Tue, 16 Dec 2008 04:56:46 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/?p=102#comment-7992</guid>
		<description>Nice, thanks for the share.</description>
		<content:encoded><![CDATA[<p>Nice, thanks for the share.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using apc (user agent is rejected)
Database Caching 1/17 queries in 0.055 seconds using apc

Served from: valokuva.org @ 2010-09-06 21:43:11 -->