KamoCRM

Resize backgrounds via ffmpeg subprocess (crash-isolated)

FixConversionService
Ya
9 Julai 2026, 19:24 UTC
Mwandishi
Kamo
Ahadi ya
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.

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila kitu kinaingia kwenye tovuti yako mwenyewe. Anza kwenye mpango wa bure na usome ukurasa huu tena katika mwezi mmoja.

Kuwa Huru MileleMtazamo wa bei