{"record":{"id":"0be045a2cd0bb0b6","repo":"Intervention/image","slug":"failed-to-apply-intervention-image-drivers-imagick-0be045","errorCode":null,"errorMessage":"Failed to apply Intervention\\Image\\Drivers\\Imagick\\Modifiers\\DrawEllipseModifier, unable to draw ellipse","messagePattern":"Failed to apply Intervention\\\\Image\\\\Drivers\\\\Imagick\\\\Modifiers\\\\DrawEllipseModifier, unable to draw ellipse","errorType":"exception","errorClass":"ModifierException","httpStatus":null,"severity":"error","filePath":"src/Drivers/Imagick/Modifiers/DrawEllipseModifier.php","lineNumber":69,"sourceCode":"        try {\n            $drawing = new ImagickDraw();\n            $drawing->setFillColor($backgroundColor);\n\n            if ($this->drawable->hasBorder()) {\n                $drawing->setStrokeWidth($this->drawable->borderSize());\n                $drawing->setStrokeColor($borderColor);\n            }\n\n            $drawing->ellipse(\n                $this->drawable->position()->x(),\n                $this->drawable->position()->y(),\n                $this->drawable->width() / 2,\n                $this->drawable->height() / 2,\n                0,\n                360,\n            );\n        } catch (ImagickException | ImagickDrawException $e) {\n            throw new ModifierException(\n                'Failed to apply ' . self::class . ', unable to draw ellipse',\n                previous: $e,\n            );\n        }\n\n        return $drawing;\n    }\n}\n","sourceCodeStart":51,"sourceCodeEnd":78,"githubUrl":"https://github.com/Intervention/image/blob/5598b9e39751c34afc5cdee84abef77f92c26f68/src/Drivers/Imagick/Modifiers/DrawEllipseModifier.php#L51-L78","documentation":"Error \"Failed to apply Intervention\\Image\\Drivers\\Imagick\\Modifiers\\DrawEllipseModifier, unable to draw ellipse\" thrown in Intervention/image.","triggerScenarios":"Thrown at src/Drivers/Imagick/Modifiers/DrawEllipseModifier.php:69 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5598b9e39751c34afc5cdee84abef77f92c26f68","analyzedAt":"2026-08-23T02:17:31.068Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}