[eluser]Unknown[/eluser]
For the life of me, I can't figure out why image_lib (the image manipulation library) in CodeIgniter isn't working. I have it working perfectly fine on my local machine, so I know the code is right. But when I upload to a production server, trying to create a thumbnail from an image just stops the code dead in its tracks.
The kicker is that image_lib isn't spitting back an error message... the page just _stops_ at that point... Here's my code snippet
Code:
$config = array(
'source_image' => '/data/servers/misc/www_thesite_com/files/originals/thepicture.jpg',
'new_image' => '/data/servers/misc/www_thesite_com/files/thumbs',
'maintain_ratio' => true,
'create_thumb' => true,
'width' => 150,
'height' => 100
);
$this->load->library('image_lib', $config);
$this->image_lib->resize();
$ThumbnailName = 'thepicture_thumb.jpg';
I've tried checking using the following code too:
Code:
if (!$this->image_lib->resize()) {
echo $this->image_lib->display_errors();
}
But, nothing happens. Everything just _stops_ at $this->image_lib->resize(); without throwing any error whatsoever.
One other note... GD2 is successfully installed. I'm able to perform other standard image manipulation without a hitch when not using CodeIgniter.
Any ideas?