Resize backgrounds via ffmpeg subprocess (crash-isolated)

FixConversionService
Shipped
9 Julai 2026, 19:24 UTC
Author
Kamo
Commit
afee6fd

ImageIO + webp-imageio could native-crash the JVM (SIGSEGV in libwebp-imageio, UpsampleBgraLinePair_SSE2) on certain WebP inputs, taking the whole ConversionService pod down. Replace the resize-bg decode/resize with an ffmpeg subprocess: ffprobe for height, then ffmpeg scale + libwebp encode. ffmpeg decodes via libavcodec (independent of Google libwebp) and, as a child process, cannot crash the JVM — a pathological image fails the request instead. Always emits a real, height-capped (<=1080) .webp.

All changes

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei