le monde fix image width

This commit is contained in:
quenousimporte 2024-06-13 09:16:10 +02:00
parent fb30b68346
commit 2bd760c960
1 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@
if (isset($_POST['lemonde']) && $_POST['lemonde'])
{
// parameters hardcoded for now
$includeimages = true;
$includeimages = false;
$includepages = true;
$url = $_POST['lmurl'];
@ -108,7 +108,7 @@
$tempimgpath = './temp/' . $pageid . '.jpg';
$tempcontent = file_get_contents($pageurl);
file_put_contents($tempimgpath, $tempcontent);
$epub->AddPage('<img src="' . $tempimgpath . '">', false, 'Page ' . $page, true);
$epub->AddPage('<img style="width: 100%" src="' . $tempimgpath . '">', false, 'Page ' . $page, true);
// Add page 1 as cover
if ($page == 1)
@ -150,7 +150,7 @@
$tempimgpath = './temp/' . $imageid . '.jpg';
$tempcontent = file_get_contents($imageurl);
file_put_contents($tempimgpath, $tempcontent);
$pagecontent .= '<p><img src="' . $tempimgpath . '"></p>';
$pagecontent .= '<p><img style="width: 100%" src="' . $tempimgpath . '"></p>';
}
}