processwire / processwire-issues

ProcessWire issue reports.
44 stars 2 forks source link

Animated gif can't be resized #1967

Open PawelGIX opened 1 week ago

PawelGIX commented 1 week ago

Short description of the issue

Animated gif can't be resized. I got error in logs.

Index invalid or out of range
In /wire/modules/Image/ImageSizerEngineAnimatedGif/gif_decoder.php line 194

Without ImageSizerEngineAnimatedGif installed animation disappers.

Here is gif. title.gif.zip

title

gideonso commented 5 days ago

@PawelGIX

The error occurs when enabling jit with parameters in php 8.0-8.1: opcache.jit_buffer_size=512M opcache.jit=tracing

The error does not occurs when enabling jit with parameters in php 8.0-8.1: opcache.jit_buffer_size=512M opcache.jit=function

This is a PHP 8 bug. You can upgrade to PHP PHP 8.3, 8.2.12 and 8.1.25 in which the bug is fixed.

Or you can change opcache.jit=tracing to opcache.jit=function in your php.ini.