When I tried to upload an animated gif, I got this error
The image was uploaded correctly but the error prevents the script from redirecting to the viewer page after upload. I suppressed the error on line 414 and everything works.
Why does this error happen?
Code:
imagecolorsforindex() Color index 255 out of range in class.upload.php line 414
The image was uploaded correctly but the error prevents the script from redirecting to the viewer page after upload. I suppressed the error on line 414 and everything works.
Code:
$transparent_color = @imagecolorsforindex($source, $transparent_index);
Why does this error happen?