Last modified: 2014-08-27 15:48:38 UTC
David Cuenca reports on mediawiki-l that a PDF from Google docs does not render on Commons. See http://thread.gmane.org/gmane.org.wikimedia.mediawiki/41507 for his message. The PDF's URL is: https://commons.wikimedia.org/wiki/File:Interproject_links_tabbed_interface_proposal_presentation.pdf Visiting a thumbnail's URL (https://upload.wikimedia.org/wikipedia/commons/thumb/3/3b/Interproject_links_tabbed_interface_proposal_presentation.pdf/page1-800px-Interproject_links_tabbed_interface_proposal_presentation.pdf.jpg) reveals the following error message: Error generating thumbnail Error creating thumbnail: convert: no decode delegate for this image format `/tmp/magick-STzEaZl6' @ error/constitute.c/ReadImage/532. convert: missing an image filename `/tmp/transform_d32a7a881ee9-1.jpg' @ error/convert.c/ConvertImageCommand/3011.
Same error for https://commons.wikimedia.org/wiki/File:Cox_and_box.pdf Error creating thumbnail: convert: no decode delegate for this image format `/tmp/magick-09CMSXr6' @ error/constitute.c/ReadImage/532. convert: missing an image filename `/tmp/transform_85fdac282e66-1.jpg' @ error/convert.c/ConvertImageCommand/3011. Split from list in bug 41665 comment 2
For PDF files without thumbnail see http://commons.wikimedia.org/wiki/Category:PDF_files_affected_by_MediaWiki_restrictions.
Ghostscript not liking the file. bawolff@Bawolff-L:~$ gs Interproject_links_tabbed_interface_proposal_presentation.pdf GPL Ghostscript 8.71 (2010-02-10) Copyright (C) 2010 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Processing pages 1 through 14. Page 1 Error: /rangecheck in --run-- Operand stack: --dict:8/17(L)-- Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1878 1 3 %oparray_pop 1877 1 3 %oparray_pop 1861 1 3 %oparray_pop --nostringval-- --nostringval-- 2 1 14 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- false 1 %stopped_push --nostringval-- --nostringval-- Dictionary stack: --dict:1153/1684(ro)(G)-- --dict:1/20(G)-- --dict:75/200(L)-- --dict:75/200(L)-- --dict:108/127(ro)(G)-- --dict:290/300(ro)(G)-- --dict:22/25(L)-- --dict:6/8(L)-- --dict:21/40(L)-- --dict:1/1(ro)(G)-- --dict:1/1(ro)(G)-- --dict:1/1(ro)(G)-- --dict:5/5(L)-- Current allocation mode is local Last OS error: 11 GPL Ghostscript 8.71: Unrecoverable error, exit code 1
otoh, ImageMagick seemed to be ok locally when I tried convert. bawolff@Bawolff-L:~$ convert --version Version: ImageMagick 6.6.0-4 2010-11-16 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC Features: OpenMP ---- So possibly something that could be fixed on update.
I have submitted the bug to the Ghostscript bugzilla: http://bugs.ghostscript.com/show_bug.cgi?id=694536 Thanks for trying!
Upstream ticket closed as INVALID: "Please try the current version of Ghostscript and, if the problem persists, reopen the bug report." Cannot reproduce the problem with 9.07 on Fedora 19: $:andre\> gs ~/Desktop/Interproject_links_tabbed_interface_proposal_presentation.pdf GPL Ghostscript 9.07 (2013-02-14) Copyright (C) 2012 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Processing pages 1 through 14. Page 1 >>showpage, press <return> to continue<< [...] Page 14 >>showpage, press <return> to continue<< GS>quit $:andre\>
I apologize, I should have mentioned my version of ghostscript is insanely old. I imagine the version on production is fairly old to. I guess this puts this ticket in ops territory - upgrade ghostscript and/or image magick
https://upload.wikimedia.org/wikipedia/commons/thumb/8/8d/Jaur%C3%A8s_-_De_la_realite_du_monde_sensible.pdf/page1-299px-Jaur%C3%A8s_-_De_la_realite_du_monde_sensible.pdf.jpg One more here. Could you please fix this bug? Thanks, Yann
(In reply to comment #8) > Could you please fix this bug? Thanks, Yann See comment 6 and comment 7. Fixing the PDF file instead should be easier.
https://commons.wikimedia.org/wiki/File:Jaur%C3%A8s_-_De_la_realite_du_monde_sensible.pdf There is no problem displaying this file locally (AReader XI), so I don't understand your answer. Regards, Yann
Well, corrupt JPX streams might still be parseable by Adobe's decoder... $:andre\> gs Jaurès_-_De_la_realite_du_monde_sensible.pdf GPL Ghostscript 9.10 (2013-08-30) Copyright (C) 2013 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Processing pages 1 through 450. Page 1 **** ERROR: Unable to process JPXDecode data. Page will be missing data. **** ERROR: Unable to process JPXDecode data. Page will be missing data.
https://upload.wikimedia.org/wikipedia/commons/thumb/0/08/FastCCI_-_Taming_the_Commons_Category_Tree.pdf/page1-200px-FastCCI_-_Taming_the_Commons_Category_Tree.pdf.jpg?blah Error generating thumbnail Error creating thumbnail: **** Error reading a content stream. The page may be incomplete. convert: no decode delegate for this image format `/tmp/magick-2P3awEZB' @ error/constitute.c/ReadImage/532. convert: missing an image filename `/tmp/transform_bec33f9bb3e6-1.jpg' @ error/convert.c/ConvertImageCommand/3011.
The file in the comment above was created by printing to PDF from Google chrome on Mac. It does not strike me as a fringe issue.