From 968339cfd900d973442cdba1642e3309414e65b7 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Tue, 11 Jun 2024 15:06:35 +0200 Subject: [PATCH] comment --- epub.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/epub.php b/epub.php index 1498cee..dfb7ed2 100644 --- a/epub.php +++ b/epub.php @@ -112,6 +112,8 @@ $imageid = $image->ContentItemId; $imageurl = preg_replace('/GetPublicationContentItems-.*\.json/', 'Image-MEDIUM-' . $imageid . '.jpg', $url); + // Download image from source, put it in temp and include it into article main html content. + // Then pass true to last AddPage param to download image to epub. $tempimgpath = './temp/' . $imageid . '.jpg'; $tempcontent = file_get_contents($imageurl); file_put_contents($tempimgpath, $tempcontent);