diff options
| author | spiderr <spiderr@bitweaver.org> | 2021-02-05 15:37:10 -0500 |
|---|---|---|
| committer | spiderr <spiderr@bitweaver.org> | 2021-02-05 15:37:10 -0500 |
| commit | a74903cf7c7074e74901cfb47fa3e67631a77cde (patch) | |
| tree | 5e26adfe01be1933adfb1f24ede3b6647a423614 | |
| parent | 5b71da0ca9b8a6e9059b44e2acd834d41d048213 (diff) | |
| download | liberty-a74903cf7c7074e74901cfb47fa3e67631a77cde.tar.gz liberty-a74903cf7c7074e74901cfb47fa3e67631a77cde.tar.bz2 liberty-a74903cf7c7074e74901cfb47fa3e67631a77cde.zip | |
cast dimensions to int in imagick::thumbnailImage
| -rw-r--r-- | plugins/processor.imagick.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 ); |
