- Issue created by @klaasvw
- 🇧🇪Belgium klaasvw
Looks like it is already fixed in https://www.drupal.org/project/image_effects/issues/3494550 🐛 TypeError in using Textoverlay Active
When using a text overlay image operation the following exception is thrown:
TypeError: Drupal\image_effects\Plugin\ImageToolkit\Operation\gd\TextOverlay::imagettftextWrapper(): Argument #4 ($x) must be of type int, float given, called in /var/www/web/modules/contrib/image_effects/src/Plugin/ImageToolkit/Operation/gd/TextOverlay.php on line 91
* Install image_effects 4.0.0
* Create an image style that uses a text overlay effect
* Make sure text alignment is set to center
* Test the preview of the text overlay effect
Because the method parameters are typed they expect int coordinates. When centering image text however a round function is applied to the x_offset, casting it to a double.
Active
4.0
Code
Looks like it is already fixed in https://www.drupal.org/project/image_effects/issues/3494550 🐛 TypeError in using Textoverlay Active