Be more precise in return array from image scaling

This commit is contained in:
Mikael Nordfeldth 2014-04-21 22:31:13 +02:00
parent c862b3f355
commit 5fbb668855

View File

@ -401,8 +401,8 @@ class ImageFile
}
return array(intval($rw), intval($rh),
intval($cx), intval($cy),
is_null($cw) ? null : intval($cw),
is_null($ch) ? null : intval($ch));
is_null($cw) ? $width : intval($cw),
is_null($ch) ? $height : intval($ch));
}
}