processwire-issues icon indicating copy to clipboard operation
processwire-issues copied to clipboard

Animated gif can't be resized

Open PawelGIX opened this issue 1 year ago • 1 comments

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

  • ProcessWire version: 3.0.229
  • (Optional) PHP version: 8
  • (Optional) MySQL version: 5

PawelGIX avatar Sep 05 '24 10:09 PawelGIX

@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.

gideonso avatar Sep 13 '24 03:09 gideonso