Skip to main content


!Friendica Developers

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.

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.

in reply to Steffen K9 🐰

@Steffen K9 🐰 I’m running the docker image, so it’s got whatever PHP tools come with that. Is there something I can do to manually add the relevant tools inside the container? I’m not a PHP person.

Friendica Developers reshared this.

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

in reply to Hypolite Petovan

Friendica Developers reshared this.

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.

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)

in reply to xy..

@xy.. @Steffen K9 🐰 @Hypolite Petovan I’ve a bunch of those too. The Docker container for 2024.08 uses 8.1.29 and 512 megs.

Friendica Developers reshared this.

in reply to Sarah Brown

I still don't know how to handle this problem. It seems as if the picture library throws exceptions that can't be caught. BTW: I don't have this problem, otherwise it would be easier for me to create some kind of workaround.
in reply to Michael Vogel

@Michael Vogel There are exceptions visible in the logs, so
something is noticing (sorry for phone screenshot, I’m away from home at the moment)

Friendica Developers reshared this.