Any idea what we can do to mitigate remote contacts using animated GIFs for their avatars and causing zombie worker jobs because PHP can’t handle the format? It started as a small issue, but more and more people (especially on lemmy) seem to be using these avatars and it’s causing a significant administration headache where I have to find out which contact is responsible by manually searching the SQL database and then server blocking them.
If Update Contact failed gracefully it would be less of an issue, but it doesn’t. I’m sure I can’t be the only one seeing this?
Friendica Developers reshared this.
Steffen K9 🐰
in reply to Sarah Brown • • •Generally, you need imagemagick and php-imagick to handle animated GIFs.
W/o php-imagick PHP is using libgd instead and you should see a non-animated version of the image.
I don't know if we have a bug when an avatar is an animated GIF.
Sarah Brown
in reply to Steffen K9 🐰 • •Friendica Developers reshared this.
Hypolite Petovan
in reply to Sarah Brown • • •@Sarah Brown @Steffen K9 🐰 You need to use the underlying package manager of the image to install the relevant dependencies, and then restart either Apache2 or phpfpm to take the changes into account.
On Debian-like:
apt install imagemagick php-imacgick
Sarah Brown
in reply to Hypolite Petovan • •@Hypolite Petovan @Steffen K9 🐰 Rather irritatingly, despite the docker image apparently being based on Debian Bullseye and Bullseye supporting php-imagick, there's no installation candidate available.
... show more@Hypolite Petovan @Steffen K9 🐰 Rather irritatingly, despite the docker image apparently being based on Debian Bullseye and Bullseye supporting php-imagick, there's no installation candidate available.
Friendica Developers reshared this.
Sarah Brown
in reply to Sarah Brown • •@Steffen K9 🐰 @Hypolite Petovan Ok, so I think I need to do this: linux.how2shout.com/how-to-ins…
Which I did, and restarted everything, but it's still bollocksed
So I'm kinda out of ideas beyond manually blocking the offending user each time this happens
Friendica Developers reshared this.
Hypolite Petovan
in reply to Sarah Brown • • •imagick
extension appears in your PHPInfo page in the administration panel?Sarah Brown
in reply to Hypolite Petovan • •Friendica Developers reshared this.
Hypolite Petovan
in reply to Sarah Brown • • •Sarah Brown
in reply to Hypolite Petovan • •Friendica Developers reshared this.
xy..
in reply to Sarah Brown • • •@Sarah Brown @Steffen K9 🐰 @Hypolite Petovan Maybe it is something Alpine Linux specific. I Am also using Alpine and I also had this error all the time. Either the one you posted (
gd-webp cannot allocate..
) or another one. Currently I only see this one, but very often :Fatal Error (E_ERROR): Allowed memory size of 536870912 bytes exhausted (tried to allocate 96485376 bytes)
I tried to allow more memory, up to 2048M.. it didn't help.. (now I am using 512M again) I don't know why this happens. But I understand it is not nice, having the admin log section full of it. 😕
What PHP version and memory_limit do you use? ( I use PHP 8.3.10 and 512M)
Sarah Brown
in reply to xy.. • •Friendica Developers reshared this.
Michael Vogel
in reply to Sarah Brown • • •Sarah Brown
in reply to Michael Vogel • •something is noticing (sorry for phone screenshot, I’m away from home at the moment)
Friendica Developers reshared this.