Intervention/image · error · ModifierException
Failed to apply Intervention\Image\Drivers\Imagick\Modifiers
Error message
Failed to apply Intervention\Image\Drivers\Imagick\Modifiers\DrawEllipseModifier, unable to draw ellipse
What it means
Error "Failed to apply Intervention\Image\Drivers\Imagick\Modifiers\DrawEllipseModifier, unable to draw ellipse" thrown in Intervention/image.
Source
Thrown at src/Drivers/Imagick/Modifiers/DrawEllipseModifier.php:69
try {
$drawing = new ImagickDraw();
$drawing->setFillColor($backgroundColor);
if ($this->drawable->hasBorder()) {
$drawing->setStrokeWidth($this->drawable->borderSize());
$drawing->setStrokeColor($borderColor);
}
$drawing->ellipse(
$this->drawable->position()->x(),
$this->drawable->position()->y(),
$this->drawable->width() / 2,
$this->drawable->height() / 2,
0,
360,
);
} catch (ImagickException | ImagickDrawException $e) {
throw new ModifierException(
'Failed to apply ' . self::class . ', unable to draw ellipse',
previous: $e,
);
}
return $drawing;
}
}
View on GitHub (pinned to 5598b9e397)
Solutions
- Pass a positive width and height for the ellipse; zero or negative radii make Imagick fail
- Ensure the center point coordinates are numeric and within reasonable bounds
- Verify the drawing color and border color are parseable by Imagick
When it happens
Trigger: Thrown at src/Drivers/Imagick/Modifiers/DrawEllipseModifier.php:69 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Intervention/image@5598b9e397 (2026-08-23).
Data as JSON: /api/errors/0be045a2cd0bb0b6.
Report an issue: GitHub.