Last modified: 2014-08-27 15:48:38 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T50007, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48007 - Error creating PDF on Commons: "convert: no decode delegate for this image format" (fixed in GS 9.07)
Error creating PDF on Commons: "convert: no decode delegate for this image fo...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
PdfHandler (Other open bugs)
unspecified
All All
: Low normal with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
: ops
Depends on:
Blocks: 41371
  Show dependency treegraph
 
Reported: 2013-05-02 16:17 UTC by Mark A. Hershberger
Modified: 2014-08-27 15:48 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Mark A. Hershberger 2013-05-02 16:17: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.
Comment 1 Andre Klapper 2013-05-03 10:44:53 UTC
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
Comment 2 Thorsten 2013-05-08 07:05:08 UTC
For PDF files without thumbnail see http://commons.wikimedia.org/wiki/Category:PDF_files_affected_by_MediaWiki_restrictions.
Comment 3 Bawolff (Brian Wolff) 2013-08-22 21:59:52 UTC
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
Comment 4 Bawolff (Brian Wolff) 2013-08-22 22:02:27 UTC
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.
Comment 5 dacuetu 2013-08-22 22:11:59 UTC
I have submitted the bug to the Ghostscript bugzilla:
http://bugs.ghostscript.com/show_bug.cgi?id=694536

Thanks for trying!
Comment 6 Andre Klapper 2013-08-23 10:08:30 UTC
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\>
Comment 7 Bawolff (Brian Wolff) 2013-08-23 17:54:57 UTC
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
Comment 9 Andre Klapper 2013-12-16 14:27:46 UTC
(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.
Comment 10 Yann Forget 2013-12-16 14:43:43 UTC
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
Comment 11 Andre Klapper 2013-12-16 19:05:56 UTC
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.
Comment 12 Rainer Rillke @commons.wikimedia 2014-08-25 03:26:55 UTC
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.
Comment 13 Daniel Schwen 2014-08-27 15:48:38 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links