Support » Fixing WordPress » ImageMagick cropping fail on Hostpapa /WordPress 3.5

  • Media uploads are failing at the point where ImageMagick is trying to crop the image.

    In wp-includes/class-wp-image-editor-imagick

    in function crop, this line
    $this->image->cropImage( $src_w, $src_h, $src_x, $src_y );

    Causes an Http 500 Internal Server Error.

    This happens with HostPapa, not with another host I am using. New Install of WordPress 3.5

    At a loss. Hostpapa support does not deal with WordPress issues as it is “Third Party Software”.

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi


    Forum Moderator

    If this happens on one server but not another, then it implies that it’s a server configuration issue. In fact I’d strongly recommend switching hosts. HostPapa do not have a good record around here.

    I dug into WordPress code some more and reproduced what it was doing on my own test file outside of WordPress as follows:

    < ? php

    /* This line below will cause cropImage to fail */
    Imagick::queryFormats( ‘JPG’);

    $img = new Imagick(‘leonids.jpg’);

    ? >

    WordPress does a queryFormats call which causes cropImage to fail. Either with just a blank screen, or internal server error or a memory error if the file is large. Leaving it out will work, even on large images. ImageMagick 6.4.8 2011-02-03 Q16

    Waiting to hear back from Hostpapa.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘ImageMagick cropping fail on Hostpapa /WordPress 3.5’ is closed to new replies.