diff --git a/typo3/sysext/core/Classes/Resource/ProcessedFile.php b/typo3/sysext/core/Classes/Resource/ProcessedFile.php
index 3edbee4f7f0ccd2edda2aa56ed3bf6363b9693b6..5d643650da1f08e1259a9ddfb9793513b9f86c75 100644
--- a/typo3/sysext/core/Classes/Resource/ProcessedFile.php
+++ b/typo3/sysext/core/Classes/Resource/ProcessedFile.php
@@ -435,6 +435,32 @@ class ProcessedFile extends AbstractFile
         return $this->properties[$key] ?? null;
     }
 
+    /**
+     * Get the MIME type of this file
+     *
+     * @throws \RuntimeException
+     * @return non-empty-string mime type
+     */
+    public function getMimeType(): string
+    {
+        if ($this->usesOriginalFile()) {
+            return $this->getOriginalFile()->getMimeType();
+        }
+        return parent::getMimeType();
+    }
+
+    /**
+     * @throws \RuntimeException
+     * @return int<0, max>
+     */
+    public function getSize(): int
+    {
+        if ($this->usesOriginalFile()) {
+            return $this->getOriginalFile()->getSize();
+        }
+        return parent::getSize();
+    }
+
     /**
      * Returns the uid of this file
      */