weserv / images

Source code of wsrv.nl (formerly images.weserv.nl), to be used on your own server(s).
https://wsrv.nl/
BSD 3-Clause "New" or "Revised" License
2.05k stars 200 forks source link

Incomplete image processing #390

Closed Melonking906 closed 1 year ago

Melonking906 commented 1 year ago

EDIT: This issue has been renamed from "Animated gif images suffering from incomplete loop"

I now realise that all images are being incompletely processed; progressive pngs and jpegs only do the first pass of rendering as well. So the issue is not gif-specific; something is halting image processing after a few moments.

ORIGINAL POST: I recently updated my servers to the latest builds and I'm seeing serious issues with some larger animated gifs:

https://images.melonland.net/?url=https%3A%2F%2Fhayleymulch.neocities.org%2Fimages%2Fdaniel-lando.gif&n=-1 The link above shows a severely damaged GIF that rapidly loops and flashes.

Whereas the original GIF appears to look like this: https://hayleymulch.neocities.org/images/daniel-lando.gif

This behaviour is present on multiple gifs proxied from separate servers. I am unclear what the cause of this issue is; it seems to have started after a server reboot.

Melonking906 commented 1 year ago

Closed; I have not resolved this issue, but it is caused by nginx using a reverse proxy; so its not a weserv issue

Melonking906 commented 1 year ago

For those who run into this error; if you are running weserv behind an Nginx proxy; you must add this setting to the nginx.conf

proxy_buffering off;