ImageMagick on MediaWiki: Thumbnails not being generated : Error Code -1

Images are uploading but no Thumbnails are being generated. thumb.php?f="image.png"&width=240 gives
Error generating thumbnail Error creating thumbnail: Error code: -1

During install of Wikimedia no thumb subdirectory has been created in images. Where is the path of the thumbnails?

The Original file ‎(672 × 671 pixels, file size: 32 KB, MIME type: image/png) should not have a memory problem.

I am stuck trying to find a solution to create those thumbnails.

Is there a page where you can find the error codes?

Upvotes: 2

Views: 1905

Answers (1)

Alexander Mashin
Alexander Mashin

Reputation: 4617

  • Check that $wgUploadDirectory is writeable by PHP.
  • Check that $wgUploadDirectory/thumb (this is the thumbnail directory) and $wgUploadDirectory/tmp exist.
  • Check that $wgImageMagickConvertCommand is set, exists and is executable (locate imagemagick may help).
  • Check nginx/Apache/PHP logs for more detailed error.

Failing that, enable MediaWiki debug log.

Further reading: https://www.mediawiki.org/wiki/Manual:Common_errors_and_symptoms#Image_Thumbnails_not_working_and/or_appearing.

Upvotes: 2

Related Questions