From 637db278fb364562e2d1be82d9e86a7c3630c848 Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 22 Dec 2025 11:46:49 +0100 Subject: [PATCH] (cp 732145f6b) fixes #2484 force integer on width/height ... was string when original url was used as derivative url (when the original is smaller than the derivative dimensions) --- include/ws_functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php index 38513cc6d..da3b6275d 100644 --- a/include/ws_functions.inc.php +++ b/include/ws_functions.inc.php @@ -168,7 +168,7 @@ function ws_std_get_urls($image_row) { $size = $derivative->get_size(); $size != null or $size=array(null,null); - $derivatives_arr[$type] = array('url' => $derivative->get_url(), 'width'=>$size[0], 'height'=>$size[1] ); + $derivatives_arr[$type] = array('url' => $derivative->get_url(), 'width'=>(int)$size[0], 'height'=>(int)$size[1] ); } $ret['derivatives'] = $derivatives_arr;; return $ret;