le monde fix image width
This commit is contained in:
parent
fb30b68346
commit
2bd760c960
6
epub.php
6
epub.php
|
@ -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>';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue