diff --git a/README.md b/README.md index be7fb715..1122cc36 100644 --- a/README.md +++ b/README.md @@ -318,3 +318,7 @@ The Wikisource logo is included as `public/img/Wikisource-logo.svg`, as an optimized form of the logo found at [commons.wikimedia.org/wiki/File:Wikisource-logo.svg](https://commons.wikimedia.org/wiki/File:Wikisource-logo.svg) and subject to the licence restrictions specified on that page. + +The PNG version in `resources/Wikisource-logo.svg.png` +is [the Commons auto-generated 160px raster version](https://upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Wikisource-logo.svg/160px-Wikisource-logo.svg.png) +of the (original, non-optimized) SVG file. diff --git a/resources/images/Accueil_scribe.png b/resources/images/Accueil_scribe.png deleted file mode 100644 index c9d90000..00000000 Binary files a/resources/images/Accueil_scribe.png and /dev/null differ diff --git a/resources/images/Wikisource-logo.svg.png b/resources/images/Wikisource-logo.svg.png new file mode 100644 index 00000000..42bdee3d Binary files /dev/null and b/resources/images/Wikisource-logo.svg.png differ diff --git a/src/Generator/EpubGenerator.php b/src/Generator/EpubGenerator.php index d410690d..d6ac4aba 100644 --- a/src/Generator/EpubGenerator.php +++ b/src/Generator/EpubGenerator.php @@ -89,7 +89,7 @@ public function create( Book $book ) { $zip->addFromString( 'OPS/about.xhtml', $this->getXhtmlAbout( $book, $wsUrl ) ); $dir = dirname( __DIR__, 2 ) . '/resources'; if ( $book->options['images'] ) { - $zip->addFile( $dir . '/images/Accueil_scribe.png', 'OPS/images/Accueil_scribe.png' ); + $zip->addFile( $dir . '/images/Wikisource-logo.svg.png', 'OPS/images/Wikisource-logo.svg.png' ); } $font = $this->fontProvider->getOne( $book->options['fonts'] ); @@ -168,7 +168,7 @@ private function getOpfContent( Book $book, $wsUrl ) { $content .= ' '; if ( $book->options['images'] ) { - $content .= ''; + $content .= ''; } $font = $this->fontProvider->getOne( $book->options['fonts'] ); if ( $font !== null ) { @@ -399,7 +399,7 @@ private function getXhtmlTitle( Book $book ) {

' . htmlspecialchars( $book->author, ENT_QUOTES ) . '


'; if ( $book->options['images'] ) { - $content .= ''; + $content .= 'Wikisource logo'; } $content .= '
' . implode( ', ', $footerElements ) . '