mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-28 12:01:13 +00:00
Merge branch 'master' into 2.3
This commit is contained in:
commit
3e7a843aa9
2 changed files with 4 additions and 2 deletions
|
@ -144,6 +144,8 @@ class DownloadImages
|
|||
$this->logger->debug('DownloadImages: Re-creating jpg');
|
||||
break;
|
||||
case 'png':
|
||||
imagealphablending($im, false);
|
||||
imagesavealpha($im, true);
|
||||
imagepng($im, $localPath, ceil(self::REGENERATE_PICTURES_QUALITY / 100 * 9));
|
||||
$this->logger->debug('DownloadImages: Re-creating png');
|
||||
}
|
||||
|
|
|
@ -148,8 +148,6 @@ class EntriesExport
|
|||
$book->setCoverImage('Cover.png', file_get_contents($this->logoPath), 'image/png');
|
||||
}
|
||||
|
||||
$book->addChapter('Notices', 'Cover2.html', $content_start.$this->getExportInformation('PHPePub').$bookEnd);
|
||||
|
||||
$book->buildTOC();
|
||||
|
||||
/*
|
||||
|
@ -170,6 +168,8 @@ class EntriesExport
|
|||
$book->addChapter($entry->getTitle(), htmlspecialchars($filename).'.html', $chapter, true, EPub::EXTERNAL_REF_ADD);
|
||||
}
|
||||
|
||||
$book->addChapter('Notices', 'Cover2.html', $content_start.$this->getExportInformation('PHPePub').$bookEnd);
|
||||
|
||||
return Response::create(
|
||||
$book->getBook(),
|
||||
200,
|
||||
|
|
Loading…
Reference in a new issue