• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

imagecolorsforindex() Color index 255 out of range

Status
Not open for further replies.

glumbo

Chevereto Member
When I tried to upload an animated gif, I got this error

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?
 
Sometimes when the functions (bundeld functions) doesn't work they shout a warning or error. In this case because the image index was out of range as the error display says.
 
What file do you need? It's weird because I tried on demo.chevereto.com with the same image and it worked without errors.
 
Status
Not open for further replies.
Back
Top