<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Bread &#38; Cup &#187; Mediawiki</title>
	<atom:link href="http://blog.breadncup.com/category/mediawiki/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.breadncup.com</link>
	<description></description>
	<lastBuildDate>Sat, 28 Jan 2012 11:25:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Thumbnail Image Memory Allocation Error in Mediawiki</title>
		<link>http://blog.breadncup.com/2009/12/01/thumbnail-image-memory-allocation-error-in-mediawiki/</link>
		<comments>http://blog.breadncup.com/2009/12/01/thumbnail-image-memory-allocation-error-in-mediawiki/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 02:23:38 +0000</pubDate>
		<dc:creator>Breadncup</dc:creator>
				<category><![CDATA[Mediawiki]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[thumbnail]]></category>

		<guid isPermaLink="false">http://blog.breadncup.com/?p=203</guid>
		<description><![CDATA[Resolution of "Memory Allocation Error" when Mediawiki uses ImageMagick.]]></description>
			<content:encoded><![CDATA[<p>Mediawiki uses ImageMagick Utility for resized thumbnail image. You can use it as</p>
<pre>$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";</pre>
<p>in your LocalSettings.php.</p>
<p>There are two reasons why ImageMagick is beneficial.</p>
<ol>
<li>It reduces loading time for image file as it stores thumbnail image separately.</li>
<li>It gives higher quality than GD library.</li>
</ol>
<p>However, you may encounter following error when shell memory is not allocated big enough.</p>
<pre>Error creating thumbnail:
libgomp: Thread creation failed: Cannot allocate memory</pre>
<p>It is due to small shell memory allocation which is handled by Mediawiki. In this case, you can simply add following in LocalSettings.php</p>
<pre>$wgMaxShellMemory = 524288;</pre>
<p>524288 means 512K. You can specify it as you desire. <sup class='footnote'><a href='#fn-203-1' id='fnref-203-1'>1</a></sup></p>
<div class='footnotes'>
<div class='footnotedivider'></div>
<ol>
<li id='fn-203-1'><a title="http://www.mediawiki.org/wiki/Manual_talk:Image_Administration" href="http://www.mediawiki.org/wiki/Manual_talk:Image_Administration" target="_blank">http://www.mediawiki.org/wiki/Manual_talk:Image_Administration</a> <span class='footnotereverse'><a href='#fnref-203-1'>&#8617;</a></span></li>
</ol>
</div>
 <img src="http://blog.breadncup.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=203" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.breadncup.com/2009/12/01/thumbnail-image-memory-allocation-error-in-mediawiki/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

