]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Merge branch 'master' into 2.3
authorNicolas Lœuillet <nicolas@loeuillet.org>
Thu, 13 Apr 2017 11:07:06 +0000 (13:07 +0200)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Thu, 13 Apr 2017 11:07:06 +0000 (13:07 +0200)
src/Wallabag/CoreBundle/Helper/DownloadImages.php
src/Wallabag/CoreBundle/Helper/EntriesExport.php

index c83f96187f8a2c9b01479ae2a15cc34467065231..0d330d2a315c5f01d9d1d11022cde49c7f29ae86 100644 (file)
@@ -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');
         }
index 93c01fcb4a634127f1bb198c7db67bbf9d13ff6a..3d36a4c89e40c91c3ae635c5c8aad1d5641ea835 100644 (file)
@@ -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,