diff --git a/lib/private/Log/ExceptionSerializer.php b/lib/private/Log/ExceptionSerializer.php
index a2bc1963003f2961c1a28ce576c45e8fa258cfde..339a6604ed1d2cc928e9ee30ab2b0185464bda84 100644
--- a/lib/private/Log/ExceptionSerializer.php
+++ b/lib/private/Log/ExceptionSerializer.php
@@ -86,6 +86,9 @@ class ExceptionSerializer {
 
 		// files_external: UserStoragesController
 		'update',
+
+		// Preview providers, don't log big data strings
+		'imagecreatefromstring',
 	];
 
 	public const methodsWithSensitiveParametersByClass = [