ImageMagick @6.8.9-6_0+x11 fails to process WordPress upload

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
billc108
Posts: 3
Joined: 2014-08-22T12:14:40-07:00
Authentication code: 6789

ImageMagick @6.8.9-6_0+x11 fails to process WordPress upload

Post by billc108 »

The most recent version of ImageMagick (6.8.9-6_0+x11) fails to process WordPress image uploads properly. I have not tested with any other systems.

Setup: Mac 10.9.4, Apache 2.2.27, PHP 5.5.15 MySQL 5.5.38 PHP Shortcode (<?)is OFF. Also occurs on a system with Mac 10.7.5, Apache 2.2.27, PHP 5.3.28, MySQL 5.1.72 with PHP Shortcode ON.

Expected behavior: When an image is uploaded via WordPress, ImageMagick is called to create one or more pre-defined smaller versions, for example a 150x150 px thumbnail. All images are then visible and available via the 'Media Library' in WordPress admin, so they can be included in various posts.

Actual behavior: The original is uploaded correctly as verified by direct inspection in the uploads repository on the server. However, the smaller version(s) of the image are not created by ImageMagick. The Media Library displays the image name but does not display the image itself and any attempts to insert the image into a post will go through the proper steps but the image does not display.

Workaround: Reverting to ImageMagick @6.8.9-1_0+x11 allows images to upload properly and small versions are created correctly.

I have also reported this on WordPress ​http://wordpress.org/support/topic/imag ... st-5921323 and on MacPorts.org https://trac.macports.org/ticket/44728 (the package I used to install ImageMagick).

As you can see in the discussion in trac.macports.org, I tried turning off support for openexr, jbig and jpeg2 which had been added to the package since the working version, but the uploads still failed.

Thanks for any assistance.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: ImageMagick @6.8.9-6_0+x11 fails to process WordPress up

Post by fmw42 »

Perhaps you should provide a set of images and your exact command line. Without that, I don't think it will be possible to determine if the problem is with Imagemagick or your other software.
billc108
Posts: 3
Joined: 2014-08-22T12:14:40-07:00
Authentication code: 6789

Re: ImageMagick @6.8.9-6_0+x11 fails to process WordPress up

Post by billc108 »

fmw42 wrote:Perhaps you should provide a set of images and your exact command line. Without that, I don't think it will be possible to determine if the problem is with Imagemagick or your other software.
Any image... I've been using various .jpgs and .pngs which have uploaded successfully in previous attempts. All are well within the size limits of the system - typically 300x400px or smaller.

I am not using command line for this. WordPress and the Regenerate Thumbnails plugin have whatever ImageMagick commands are needed built in.

Though I'm just clicking buttons in this case, I'll be happy to attempt some commands if you supply some for me to test with. I'm unfamiliar with the internal workings of ImageMagick but pretty familiar with command line.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: ImageMagick @6.8.9-6_0+x11 fails to process WordPress up

Post by fmw42 »

These two commands work fine for me on IM 6.8.9.7 Q16 Mac OSX using command line syntax in a terminal window

# create 512x512 gradient image in png format

Code: Select all

convert -size 512x512 gradient: grad512.png
# create 150x150 thumbnail

Code: Select all

convert grad512.png -thumbnail 150x150 grad512_thumb.png
billc108
Posts: 3
Joined: 2014-08-22T12:14:40-07:00
Authentication code: 6789

Re: ImageMagick @6.8.9-6_0+x11 fails to process WordPress up

Post by billc108 »

Ok, those commands work properly with both the current and the the previous version on my OS 10.7.5 test bed.

So I guess there's some disconnect in the way WordPress is carrying out the operations. I'll hammer on WordPress some more.
Post Reply