Jump to content

Animated profile image resizing error in GD

Recommended Posts

 I uploaded a profile image, an animated gif, the library for manipulating the image is GD, when I chose cropping, it gave me an error:

ValueError: imagecolorsforindex(): Argument #2 ($color) is out of range (0)
#0 /var/www/vhosts/**.it/httpdocs/system/Image/Gd.php(298): imagecolorsforindex()
#1 /var/www/vhosts/**.it/httpdocs/applications/core/modules/front/members/profile.php(1487): IPS\Image\_Gd->cropToPoints()
#2 /var/www/vhosts/**.it/httpdocs/system/Dispatcher/Controller.php(90): IPS\core\modules\front\members\_profile->cropPhoto()
#3 /var/www/vhosts/**.it/httpdocs/applications/core/modules/front/members/profile.php(73): IPS\Dispatcher\_Controller->execute()
#4 /var/www/vhosts/**.it/httpdocs/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\front\members\_profile->execute()
#5 /var/www/vhosts/**.it/httpdocs/index.php(13): IPS\_Dispatcher->run()
#6 {main}

I changed it to ImageMagick and it's gone.

I have tried on both my forums, if it helps I attach the gif that creates this problem.



Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...