Viewing 3 replies - 1 through 3 (of 3 total)
  • I have the same problem. It must have to do with rounding errors. I already tried to change the width of my theme from 625 to 624 (as 624 is dividable by 1.5, the aspect ratio of all my images), but that does not work in all cases, it depends on the size of the original images as well.

    I assume you modified the code to get this working. Can you tell me where? Are you using the CLI or PHP interface from the plugin to ImageMagick?

    Thread Starter shirshir

    (@shirshir)

    I am using the PHP interface. The change (for version 1.40) is in file imagemagick-engine.php, function ime_im_php_resize(), line 436:

    From:
    $im->scaleImage($width, $height, true);

    To:
    $im->scaleImage($width, $height, false);

    MH

    (@matthewhollett)

    This is happening for me as well. WordPress is generating a file called “Image-138×85” that is actually 137 x 85 pixels. I used the fix that shirshir posted and it is working properly now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: ImageMagick Engine] Scaling off by 1 pixel’ is closed to new replies.