title: PDF rendering issue using tcpdf
body: <p>I’ve developed a feature in my application which takes some images and rendered to one pdf according to user. This functionality is working okay in my stage server but this shows me “server error” on production. </p>
  
  <p>I verified error logs of apache and I found following errors</p>
  
  <pre><code>libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
  
  Corrupt JPEG data: 234 extraneous bytes before marker 0xd9
  </code></pre>
  
  <p>The application is created on cakephp, the library for rendering pdf is tcpdg and staging and production servers are on ubuntu. I’ve consult some senior guys, they all are saying this is GD problem. </p>
  
  <p>The environment on stage server</p>
  
  <pre><code>PHP 5.3.3-0.dotdeb.1 with Suhosin-Patch (cli) (built: Oct  1 2010 08:49:29)
  Copyright (c) 1997-2009 The PHP Group
  </code></pre>
  
  <p>The environment on production server</p>
  
  <pre><code>PHP 5.3.2-1ubuntu4.18 with Suhosin-Patch (cli) (built: Sep 12 2012 19:12:47)
  Copyright (c) 1997-2009 The PHP Group
  </code></pre>
  
  <p>Please recommend me any risk free solution. </p>