Talk:HiDPI display support

From MediaWiki.org
Jump to navigation Jump to search

Rick95065 (talk) 20:45, 5 September 2013 (UTC)

I get an error importing retina-sized images: Error creating thumbnail: /bin/bash: /usr/bin/convert: No such file or directory

When I import a "normal-sized" image, the thumbnail appears properly.

I'm guessing this is part of the known issues relating to HiDPI images, but I haven't seen anyone mention it explicitly. The error message is extremely misleading (unless it's not and something else is going on).

I create retina images by taking a screen shot on a MacBook Pro with Retina display. I open the image in SnagIt and resave using the "Save using Retina size" check box. I then upload the file to my Mediawiki instance.

Product 	Version

MediaWiki 1.21.1 PHP 5.3.3 (apache2handler) MySQL 5.1.69

(This is running on an AWS server...)

The Full resolution version link works fine: the image appears as it should (i.e, huge). But the thumbnail on the [[File:Imagename]] page does not appear and instead displays the error message as reported above.

If I had to guess, the larger images are simply using more memory and the default memory limits for the ImageMagick shell-out are causing it to fail unexpectedly (this can cause really weird error messages that don't sound right).
Try copying these lines in your LocalSettings.php:
$wgMaxShellMemory = 1024000; // 10x the default
$wgMaxShellFileSize = 1024000; // 10x the default
and see if that helps. (You may have to force the page to re-render.)
Another possibility is that the non-retina images are small enough that they don't have to be resized, and your ImageMagick setup is simply broken, or changed during a server update. Check whether ImageMagick is properly installed on the server (there should be a /usr/bin/convert command on the filesystem!) --brion (talk) 21:04, 5 September 2013 (UTC)