From a74903cf7c7074e74901cfb47fa3e67631a77cde Mon Sep 17 00:00:00 2001 From: spiderr Date: Fri, 5 Feb 2021 15:37:10 -0500 Subject: cast dimensions to int in imagick::thumbnailImage --- plugins/processor.imagick.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/processor.imagick.php b/plugins/processor.imagick.php index edbe24f..e45b7aa 100644 --- a/plugins/processor.imagick.php +++ b/plugins/processor.imagick.php @@ -106,7 +106,7 @@ function liberty_imagick_resize_image( &$pFileHash ) { } // create thumb and write - $im->thumbnailImage( $pFileHash['max_width'], $pFileHash['max_height'], TRUE ); + $im->thumbnailImage( (int)$pFileHash['max_width'], (int)$pFileHash['max_height'], TRUE ); $im->writeImage( $destFile ); $pFileHash['size'] = filesize( $destFile ); -- cgit v1.3