summaryrefslogtreecommitdiffstats
path: root/application/libraries/Image/Drivers
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2023-01-29 14:10:25 +0100
committerFlorian Pritz <bluewind@xinu.at>2023-01-29 14:10:25 +0100
commit93fbe8dccec7b14c024259f83543bde4a95be298 (patch)
tree883786b47f0246ec6e0fb85b8b72af703cfaa152 /application/libraries/Image/Drivers
parentc88be04f0ec35304be812d7f5379c4362008b730 (diff)
feat(PHP8.2): Fix deprecated string interpolation
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/libraries/Image/Drivers')
-rw-r--r--application/libraries/Image/Drivers/imagemagick.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/application/libraries/Image/Drivers/imagemagick.php b/application/libraries/Image/Drivers/imagemagick.php
index 33e62ffe4..e65d05d3e 100644
--- a/application/libraries/Image/Drivers/imagemagick.php
+++ b/application/libraries/Image/Drivers/imagemagick.php
@@ -80,14 +80,14 @@ class imagemagick implements \libraries\Image\ImageDriver {
public function resize($width, $height)
{
$this->arguments[] = "-resize";
- $this->arguments[] = "${width}x${height}";
+ $this->arguments[] = "{$width}x{$height}";
}
public function crop($x, $y, $width, $height)
{
$this->arguments[] = "+repage";
$this->arguments[] = "-crop";
- $this->arguments[] = "${width}x${height}+${x}+${y}";
+ $this->arguments[] = "{$width}x{$height}+{$x}+{$y}";
$this->arguments[] = "+repage";
}
@@ -100,11 +100,11 @@ class imagemagick implements \libraries\Image\ImageDriver {
$this->apply_exif_orientation();
$this->arguments[] = "-thumbnail";
- $this->arguments[] = "${target_width}x${target_height}^";
+ $this->arguments[] = "{$target_width}x{$target_height}^";
$this->arguments[] = "-gravity";
$this->arguments[] = "center";
$this->arguments[] = "-extent";
- $this->arguments[] = "${target_width}x${target_height}^";
+ $this->arguments[] = "{$target_width}x{$target_height}^";
}
public function apply_exif_orientation()