• mskinna

    (@mskinna)


    Hi,

    Its almost a perfect plugin.. except that when an image is defined without a specified height (e.g. add_image_size( ‘content_half’, 390, 0, true); ) the crop editor throws a load of error because of the division by zero.

    Lines 131, 136, 140, and 152 of ManualImageCropEditorWindow.php give ‘Warning: Division by zero’

    Any chance of a patch for this? Specifying a height or width as zero is standard wordpress default functionality as spec’d in the codex.

    https://ww.wp.xz.cn/plugins/manual-image-crop/

Viewing 1 replies (of 1 total)
  • Plugin Author Tomasz Sita

    (@tomaszsita)

    Hi,

    thanks, that’s a good spot.

    I will try to cover this in the future release.

Viewing 1 replies (of 1 total)

The topic ‘division by zero bug’ is closed to new replies.