{"record":{"id":"e3ca4d571ce02fee","repo":"Intervention/image","slug":"unprocessable-input","errorCode":null,"errorMessage":"Unprocessable input","messagePattern":"Unprocessable input","errorType":"exception","errorClass":"Intervention\\Image\\Exceptions\\NotSupportedException","httpStatus":null,"severity":"error","filePath":"src/InputHandler.php","lineNumber":120,"sourceCode":"        }\n\n        if ($input === '') {\n            throw new InvalidArgumentException('Unable to decode from empty string');\n        }\n\n        // if handler has only one single decoder run it can run directly\n        if (count($this->decoders) === 1) {\n            return $this->decoders()->current()->decode($input);\n        }\n\n        // multiple decoders: try to find the matching decoder for the input\n        foreach ($this->decoders() as $decoder) {\n            if ($decoder->supports($input)) {\n                return $decoder->decode($input);\n            }\n        }\n\n        throw new NotSupportedException('Unprocessable input');\n    }\n\n    /**\n     * Yield all decoders.\n     *\n     * @throws InvalidArgumentException\n     * @throws DriverException\n     */\n    private function decoders(): Generator\n    {\n        foreach ($this->decoders as $decoder) {\n            yield $this->decoder($decoder);\n        }\n    }\n\n    /**\n     * Resolve the given classname or object to a decoder object.\n     *","sourceCodeStart":102,"sourceCodeEnd":138,"githubUrl":"https://github.com/Intervention/image/blob/5598b9e39751c34afc5cdee84abef77f92c26f68/src/InputHandler.php#L102-L138","documentation":"Error \"Unprocessable input\" thrown in Intervention/image.","triggerScenarios":"Thrown at src/InputHandler.php:120 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass input the handler can process: binary image string, data URI, base64 string, file path, SplFileInfo, stream, or ImageInterface","Enable the matching decoder for the driver (e.g. FilePathImageDecoder, BinaryImageDecoder) or install imagemagick/gd support for the format","Inspect InputHandler::handle()'s supported types and convert your input to one of them"],"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"}