- Issue created by @batkor
- Status changed to Needs review
about 2 years ago 11:55am 24 January 2023
I get errors, after add "Define canvas" effect
Deprecated function: Implicit conversion from float 102.5 to int loses precision in Drupal\imagick\Plugin\ImageToolkit\Operation\imagick\DefineCanvas->process() (line 77 of modules/contrib/imagick/src/Plugin/ImageToolkit/Operation/imagick/DefineCanvas.php).
Drupal\imagick\Plugin\ImageToolkit\Operation\imagick\DefineCanvas->process(Object, Array) (Line: 49)
Drupal\imagick\Plugin\ImageToolkit\Operation\imagick\ImagickOperationBase->processFrames(Array) (Line: 16)
Drupal\imagick\Plugin\ImageToolkit\Operation\imagick\ImagickOperationBase->execute(Array) (Line: 172)
Drupal\Core\ImageToolkit\ImageToolkitOperationBase->apply(Array) (Line: 124)
Drupal\Core\ImageToolkit\ImageToolkitBase->apply('define_canvas', Array) (Line: 142)
Drupal\Core\Image\Image->apply('define_canvas', Array) (Line: 24)
Drupal\imagick\Plugin\ImageEffect\DefineCanvasImageEffect->applyEffect(Object) (Line: 329)
Drupal\image\Entity\ImageStyle->createDerivative('core/modules/image/sample.png', 'public://styles/np_og_image/public/core/modules/image/sample.png') (Line: 58)
template_preprocess_image_style_preview(Array, 'image_style_preview', Array)
1. Create image style
2. Add Define canvas effect
3. Check "Exact measurements"
4. Set width 1200
5. Set height 630
6. Save/Update effect
Force convert variable type
Needs review
1.0
Code