![]() Ghostscript will attempt to recover the data. This may have been caused by a problem while converting or transfering the file. I am trying to upload from HUD ( ) and I get this:Įrror creating thumbnail: **** Warning: An error occurred while reading an XREF table. pdf files from wikipedia and the IRS (US Govt). Unfortunately I found no way to suppress those warnings because they are printed to stdout and convert reads exactly from that :-/ - Andreas P. … and that, I guess-even the quiet option -q is set-seems to conflict with convert, that reads from stdout of gs. **** Warning: glyf overlaps cmap, truncating. It turned out that gs printed messages … **** Warning: glyf overlaps cmap, truncating. Testing it on command line both commands together (joined by a | ) fail, but testing it by processing 1st the gs process save it to a file than 2nd process: process that image by convert works fine. Note that you may need to purge the cache (add ?action=purge to the end of your URL) to ensure the images are re-created after making this change. Mike Peel 08:22, 28 August 2010 (UTC) Reply Also worked for me on Debian 5.0.4 and ImageMagick 6.3.7. This solution worked for me when encountering the same problem. Try reinstalling that.- Rsberzerker 12:09, (UTC) Reply Solution: You have to increase your value for $wgMaxShellMemory in LocalSettings.php (in my case it was fixed by increasing to 1024000, default is 102400) - Kirrmann 13:38, 18 August 2010 (UTC) Reply $wgMaxShellMemory = 1024000 It sounds like your problem is with ImageMagick. Here's my relevant section from LocalSettings.php: require_once("$IP/extensions/PdfHandler/PdfHandler.php") `/tmp/magick-XX1umJ0i' magick/constitute.c/ReadImage/526.Ĭonvert: missing an image filename `/home/webapps/wiki/images/thumb/2/23/Issue_2_amended.pdf However, when I upload a pdf I get blank grey panels with the following error in them: Error creating thumbnail: convert: no decode delegate for this image format Require_once( "$IP/extensions/PdfHandler/PdfHandler.php") $wgImageMagickConvertCommand = "/usr/bin/convert" I have gs, pdfinfo and imagemagick installed. change $wgPdfProcessor = "D:\gs\gs8.60\bin\gswin32.exe" to $wgPdfProcessor = 'D:\gs\gs8.60\bin\gswin32.exe', otherwise PHP will do funny things to your backspaces in the path. Flavien 15:01, 14 September 2007 (UTC) Reply This extension needs 1.11 at least, see the infobox in the upper right corner - Raymond For version 1.10 you can replace $image->getPath() with $image->getImagePath() at line 101 - 62.117.121.56 11:38, 26 September 2007 (UTC) Reply You should replace your double quotes with single quotes (e.g. Is this because this extension requires MediaWiki 1.12.0? $wgPdfPostProcessor = $wgImageMagickConvertCommand Require_once('extensions/PdfHandler/PdfHandler.php') If that helps, this the end of LocalSettings.php: When uploading a PDF (but no problem uploading normal images), I've got this error message on MediaWiki 1.10.0:įatal error: Call to undefined method Image::getPath() in D:\www\mediawiki\extensions\PdfHandler\PdfHandler_body.php on line 101 ![]() 63.229.58.2 18:46, (UTC) Reply I got it to work, but only with PDF files uploaded after installation. Anyone out there get it to work? How? Thanks! I'm trying to gather more data on this extension. What I have tracked down is that it looks like someone wants it installed into wikisourceĪn example of the extension is here which looks very cool! I would really love to use this extension but its hard with some of the documentation missing :(
0 Comments
Leave a Reply. |