<?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>Pioneer on the Internet - Sean Gursky &#187; gallery2</title>
	<atom:link href="http://blog.seangursky.com/tag/gallery2/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.seangursky.com</link>
	<description>Breaking ground since 1997</description>
	<lastBuildDate>Wed, 28 Jul 2010 16:19:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>My Gallery2 Thumbnail Problem</title>
		<link>http://blog.seangursky.com/2009/12/my-gallery2-thumbnail-problem</link>
		<comments>http://blog.seangursky.com/2009/12/my-gallery2-thumbnail-problem#comments</comments>
		<pubDate>Wed, 16 Dec 2009 16:41:21 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[gallery2]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.seangursky.com/?p=1778</guid>
		<description><![CDATA[When I changed hosting plans with GoDaddy I encountered a few problems with Gallery2. All of the configuration was correct, but when I uploaded a new image the square thumbnail would not appear. I deactivated the Square Thumbnail plugin from Site Admin > Gallery > Plugins, and reactivated it but there was no change. I [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.seangursky.com/wp-content/uploads/2009/12/gallery2-icon.jpg" alt="Gallery2 Icon" title="Gallery2 Icon" width="75" height="75" class="alignleft size-full wp-image-1785" />When I changed hosting plans with GoDaddy I encountered a few problems with Gallery2.  All of the configuration was correct, but when I uploaded a new image the square thumbnail would not appear.  I deactivated the Square Thumbnail plugin from Site Admin > Gallery > Plugins, and reactivated it but there was no change.  </p>
<p>I attempted to rebuild all thumbnails from Gallery > Maintenance but I received an error message about the last image I uploaded.  I figured something was wrong and began the task of troubleshooting.</p>
<p>If I have a problem with Gallery2 there is a good chance the answer can be found in the <a href="http://gallery.menalto.com/forum" target="_blank">support forums</a>.  The forums were helpful but there was never a &#8216;catch all&#8217; thread for my problem.  Since I have gone through this process twice in eight months I wanted to write the steps I took for future reference and possibly for others if they have a problem when their square thumbnails are no longer being created after a host move.</p>
<p><strong>Getting Started</strong><br />
The <a href="http://codex.gallery2.org/Gallery2:faq#Thumbnails_.2F_resized_images_don.27t_get_generated_properly.2C_how_can_it_be_fixed.3F" target="_blank">Thumbnails / resized images</a> section in the FAQ got me on the path to troubleshooting the Graphic Toolkits.  I started off with completely uninstalling ImageMagick, Jpegtran, NetPBM and Gd.  At this point I uninstalled the Square Thumbnails plugin; I don&#8217;t know if this was necessary to remove the Square Thumbnails plugin but I did not want to take any chances.</p>
<p>Installing ImageMagick, Jpegtran, NetPBM and Gd was easy, but configuring them was where the majority of my time was spent.  Gd installs without configuration, but the other three require a bit more attention.  </p>
<p><strong>ImageMagick</strong><br />
Fortunately ImageMagick is accessible by a public directory on GoDaddy hosting accounts, so when I had to provide a path for the IM (ImageMagick) binaries all I had to enter was &#8220;/usr/local/bin/&#8221; and Save Settings.</p>
<p><a href="http://blog.seangursky.com/wp-content/uploads/2009/12/ImageMagickSettings.jpg" rel="lightbox[1778]"><img src="http://blog.seangursky.com/wp-content/uploads/2009/12/ImageMagickSettings-300x90.jpg" alt="Gallery2 ImageMagick Settings" title="Gallery2 ImageMagick Settings" width="300" height="90" class="aligncenter size-medium wp-image-1787" /></a></p>
<p><strong>Jpegtran</strong><br />
This is where things got a little more difficult for me.  There is a /jpegtran folder at &#8220;/usr/bin/jpegtran&#8221; but that would fail to crop the image when I tested the binary.  I also received the error message &#8220;Incorrect exit status for jpegtran command&#8221;.  </p>
<p>I downloaded my own Jpegtran library from the file &#8220;jpegtran.tar.gz&#8221;, which can be downloaded from <a href="http://blog.seangursky.com/wp-content/uploads/2009/12/jpegtran.tar.gz">here</a>.  I extracted the file and uploaded it to a folder inside of my Gallery2 installation.  Then I set the folder and its contents to 755 and tested the settings again and this time the crop function passed.</p>
<p><strong>NetPBM</strong><br />
I downloaded a version of the NetPBM file from <a href="http://sourceforge.net/projects/gallery/files/tools/netpbm-gallery-1.4-pl2/">Sourceforge</a> (the same file is mirrored <a href="http://blog.seangursky.com/wp-content/uploads/2009/12/netpbm_gallery-1.4-pl2-linux-intel.zip">here</a>).  I extracted the files to a folder inside my Gallery2 installation and set the folder and its contents to 755.  When I ran the test I had the &#8220;Jhead&#8221; path empty and had several error messages.</p>
<p><a href="http://blog.seangursky.com/wp-content/uploads/2009/12/no-jhead-installed.jpg" rel="lightbox[1778]"><img src="http://blog.seangursky.com/wp-content/uploads/2009/12/no-jhead-installed-300x156.jpg" alt="Gallery2 No Jhead Installed" title="Gallery2 No Jhead Installed" width="300" height="156" class="aligncenter size-medium wp-image-1786" /></a></p>
<p>I attempted to install the &#8220;Jhead&#8221; library with <a target="_blank" href="http://blog.seangursky.com/wp-content/uploads/2009/12/Jhead.gz">Jhead.gz</a> and <a target="_blank" href="http://blog.seangursky.com/wp-content/uploads/2009/12/jhead-latest.tar.gz">jhead-latest.tar.gz</a> but neither appeared to work.  When I did this in April 2009 I was not sure if I had &#8220;Jhead&#8221; installed or not, but I am still able to use NetPBM on MIME types image/jpeg, image/pjpeg, image/gif, image/png and image/tiff so that will meet my requirements for now. If I find the answer for the &#8220;Jhead&#8221; library path I will update this post.</p>
<p>With ImageMagick, Jpegtran, NetPBM and Gd installed and configured I reinstalled Square Thumbnails and when I re-uploaded the image my previously broken image now appeared.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.seangursky.com/2009/12/my-gallery2-thumbnail-problem/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
