From c2b72c7688547ebc42f825bc253cb1af2a94bf17 Mon Sep 17 00:00:00 2001 From: Thomas Casteleyn Date: Wed, 8 Jul 2020 13:18:54 +0200 Subject: [PATCH] More memory efficient image pass through --- pages/graphviz.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/graphviz.php b/pages/graphviz.php index ace9e1f9f..7a42a8ccb 100644 --- a/pages/graphviz.php +++ b/pages/graphviz.php @@ -143,14 +143,14 @@ if (file_exists($sDotExecutable)) else { header('Content-type: image/png'); - echo file_get_contents($sImageFilePath); + readfile($sImageFilePath); } @unlink($sDotFilePath); } else { header('Content-type: image/png'); - echo file_get_contents($sImageFilePath); + readfile($sImageFilePath); } ?>