title: Using codeigniter image lib - converting images
body: <p>Using codeigniter image lib is it possible to just change an image type? Trying to convert from * -> PNG.</p>
  
  <p>The below doesn't work!</p>
  
  <pre><code>$config = array();
  $config['source_image']='uploads/'.$name.'.'.$m[1];
  $config['new_image']='uploads/'.$name.'.'.$png;
  $objImage = new CI_Image_lib($config);
  </code></pre>
  
  <p>Many thanks! All help very appreciated!</p>
  
  <hr>
  
  <p>Currently just using, but would like to use image lib and support all image types.</p>
  
  <pre><code>$sourceImage = imagecreatefromjpeg('uploads/'.$name.'.'.$m[1]);
  imagepng($sourceImage, 'uploads/'.$name.'.png');
  </code></pre>