Issue #3522463 by klemendev, o'briat, kim.pepper:...
Issue #3522463 by klemendev, o'briat, kim.pepper: FileImageDimensionsConstraintValidator does not update file size (regression)
(cherry picked from commit 29704ed8)
@@ -66,6 +66,7 @@ public function validate(mixed $value, Constraint $constraint) {
if($image->scale($width,$height)){
$scaling=TRUE;
$image->save();
$file->setSize($image->getFileSize());
if(!empty($width)&&!empty($height)){
$this->messenger->addStatus($this->t('The image was resized to fit within the maximum allowed dimensions of %dimensions pixels. The new dimensions of the resized image are %new_widthx%new_height pixels.',