https://bugzilla.wikimedia.org/show_bug.cgi?id=37632
Web browser: ---
Bug #: 37632
Summary: Thumbnail generation broken on 1.19
Product: MediaWiki extensions
Version: REL1_19 branch
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: major
Priority: Unprioritized
Component: PdfHandler
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Mobile Platform: ---
Hi,
I've skipped 1.18 - so I'm not sure if it was working or not with this release.
On MW 1.19 PdfHandler does not generates thumbnail with generic error code 1
("GPL Ghostscript 9.05: Unrecoverable error, exit code 1").
It seems like GS does not get proper file name to convert, since it's URL file
format. For example:
mwstore://local-backend/local-public/9/9f/FreeLoaderManual-ocr.pdf
Changing this code fixes problem (I haven't seen in MW 1.19 any information
about changes in file api)
--- PdfHandler_body.php 2012-06-15 18:50:21.574756245 +0200
+++ PdfHandler_body.php-orig 2012-06-15 18:50:04.247514269 +0200
@@ -103,8 +103,7 @@
$width = $params['width'];
$height = $params['height'];
- $srcPath = $image->getLocalRefPath();
+ $srcPath = $image->getPath();
$page = $params['page'];
if ( $page > $this->pageCount( $image ) ) {
Cheers! Adrian
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l