[eluser]vestrinang[/eluser]
Hello,
I just had the same error, not when uploading, but when trying to show a thumbnail (use of the resize() method in CI image_lib), and I also have GD2 installed. The error did not seem related to GD server library (as in your case), but on the fact that the image file was not where image_lib looked for it (I forgot to first upload the file...).
After I copied the file and set the read permissions, I also had a problem with the file copy which takes place inside the resize() method. When you don't specify a destination file name, the method should set the destination file name the same as the source file name, but from some reason it did not. So I added an additional check before the file is copied ( in the resize method of the image_lib class, i.e. image_process_gd() ):
Code:
if (($this->orig_width == $this->width AND $this->orig_height == $this->height) AND ($this->source_image != $this->new_image && $this->new_image != ''))
I added the last
Code:
&& $this->new_image != '')
(don't forget the opening brace).
And it worked for me, my thumbnail is displayed.
First, check if the tmp_file is copied to the upload destination in the upload process. Then, set the new file name the same as the source file name, or make the changes I did.
Hope this helps.