Page MenuHomePhabricator

ImageMagick image resizing thumbnails fail on Windows
Closed, DeclinedPublic

Description

Author: abutmah

Description:
Hi ...
I have problem with resizing image ... when I use the script [[image:learn.jpg]]
it works fine and it shows the image with its original dimensions ... but when I
tried this [[image:learn.jpg|left|300px]] i got the following error:
"Incomplete GD library configuration: missing function imagecreatefromjpeg"

so I installed ImageMagick-6.3.3-Q16, and I put
$wgImageMagickConvertCommand ="C:\Program Files\ImageMagick-6.3.3-Q16\convert.exe";
in the localsetting.php instead of
$wgImageMagickConvertCommand ="/usr/bin/convert";

but now when its loading the page it just shows a rectangle (that there will be
an image) and after loading nothing appears... no image at all !!!!

waiting for your help
regards,


Version: 1.9.x
Severity: normal
OS: Windows XP
Platform: PC

Details

Reference
bz9381

Event Timeline

bzimport raised the priority of this task from to Unbreak Now!.Nov 21 2014, 9:38 PM
bzimport set Reference to bz9381.
bzimport added a subscriber: Unknown Object (MLST).
  • Bug 9382 has been marked as a duplicate of this bug. ***

robchur wrote:

  • Use double-backslashes in the path instead of singles, or convert to

forward-slashes

  • Ensure that the user Apache runs as has read and execute permissions on the

convert binaries

  • Ensure that the same user has read and write permissions on the thumbnail

directories

abutmah wrote:

mmmm.... But I'm using ISS 5 ... and where is that "convert binaries" in order
to set permissions ?!!

robchur wrote:

(In reply to comment #4)

mmmm.... But I'm using ISS 5 ... and where is that "convert binaries" in order
to set permissions ?!!

Then check that the two users IIS uses (IUSR_*) have the permissions. The
"convert" binary can be found in the installation path for ImageMagick.

abutmah wrote:

(In reply to comment #5)

(In reply to comment #4)

mmmm.... But I'm using ISS 5 ... and where is that "convert binaries" in order
to set permissions ?!!

Then check that the two users IIS uses (IUSR_*) have the permissions. The
"convert" binary can be found in the installation path for ImageMagick.

  • I'm sure that the converter works because when I opened the image/thumb

directory I found thumbs with the sizes I've tried on.

  • I gave permission for both the IUSR_* and IWAM_* on both the Image directory

and the whole directory that contains the the "convert" ....
but unfortunately it still don't show any image and don't give me any error ...
just an empty rectangle with image size while loading ,and nothing after that ...!!!

Restricted Application added subscribers: Steinsplitter, Matanya. · View Herald Transcript