title: PHP GD creating thumbnails with one black pixel in the top left corner
body: <p>Warning: I don't have much experience with CodeIgniter and I am updating a site originally created by another developer.</p>
  
  <p>For some reason the CodeIgniter image class is creating thumbnails with a black pixel in the top left corner.  Here is an example:</p>
  
  <p><a href="http://jnjnjn.com/images/codeigniter_bad_thumb.jpg" rel="nofollow noreferrer">alt text http://jnjnjn.com/images/codeigniter_bad_thumb.jpg</a></p>
  
  <p>This only seems to happen in production (this site is being hosted on a super lame shared host).  Thumbnails are created just fine on my OS X dev machine and my Ubuntu machine on Slicehost.</p>
  
  <p>The code is pretty boilerplate, and from what I can tell the image library doesn't have a whole lot of options to screw up.</p>
  
  <p>The options look like this:</p>
  
  <pre><code>$this-&gt;Image_Resize['image_library'] = 'gd2';
  $this-&gt;Image_Resize['thumb_marker'] = 'thumb_';
  $this-&gt;Image_Resize['create_thumb'] = TRUE;
  $this-&gt;Image_Resize['maintain_ratio'] = TRUE;
  $this-&gt;Image_Resize['width'] = 200;
  $this-&gt;Image_Resize['height'] = 200;
  </code></pre>
  
  <p>And then the image is processed like this:</p>
  
  <pre><code>$this-&gt;Image_Resize['source_image'] = 'images/news/'.$image['file_name'];
  $this-&gt;image_lib-&gt;initialize($this-&gt;Image_Resize);
  $this-&gt;image_lib-&gt;resize();
  </code></pre>
  
  <p>Has anyone run into this issue before?  Google &amp; SO searches aren't getting me anywhere.  These pixels are driving me nuts.</p>
  
  <p><b>Update</b>: As I was afraid, this didn't have anything to do with CodeIgniter.  Something is screwy with the host's GD library and they don't support anything else.  It's just weird that I can't find anyone else in the world who's had this problem.</p>
  
  <p>Anyway my advice is to never, ever, ever use Doteasy.  They are a nightmare.</p>