Page 1 of 1

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

Posted: 2014-08-22T12:25:46-07:00
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.

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

Posted: 2014-08-22T12:54:38-07:00
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.

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

Posted: 2014-08-22T13:01:55-07:00
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.

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

Posted: 2014-08-22T13:11:26-07:00
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

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

Posted: 2014-08-22T16:12:29-07:00
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.