From 0dc408a8ddba00bd5c3acb41be00037cb6d168b3 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 19 Mar 2021 14:31:07 -0400 Subject: [PATCH] Fix issue processwire/processwire-issues#1311 --- wire/core/Pageimage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/core/Pageimage.php b/wire/core/Pageimage.php index 76579fb0..d8f90483 100644 --- a/wire/core/Pageimage.php +++ b/wire/core/Pageimage.php @@ -682,7 +682,7 @@ class Pageimage extends Pagefile { $result = $this->___size($width, $height, $options); } - if($result) { + if($result && $result !== $this) { $options['_width'] = $width; $options['_height'] = $height; $result->set('sizeOptions', $options);