diff --git a/typo3/sysext/core/Classes/Imaging/ImageManipulation/Ratio.php b/typo3/sysext/core/Classes/Imaging/ImageManipulation/Ratio.php
index d8301cd5d229a743978567e9e48c7851b6a58e49..45e05a291f5045a9ecbfeaf7d9fbeb69b3b0c8f3 100644
--- a/typo3/sysext/core/Classes/Imaging/ImageManipulation/Ratio.php
+++ b/typo3/sysext/core/Classes/Imaging/ImageManipulation/Ratio.php
@@ -32,7 +32,7 @@ class Ratio
 
     public function __construct(string $id, string $title, float $value)
     {
-        $this->id = $id;
+        $this->id = str_replace('.', '_', $id);
         $this->title = $title;
         $this->value = $value;
     }