Intervention \ Image \ Exceptions \ DecoderException
PHP 8.2.26
Unable to decode input
 / home / tinhdaul / public_html / vendor / intervention / image / src / Drivers / AbstractDecoder.php: 38
    }

    /**
     * Try to decode given input to image or color object
     *
     * @param mixed $input
     * @throws RuntimeException
     * @return ImageInterface|ColorInterface
     */
    final public function handle(mixed $input): ImageInterface|ColorInterface
    {
        try {
            $decoded = $this->decode($input);
        } catch (DecoderException $e) {
            if (!$this->hasSuccessor()) {
                throw new DecoderException($e->getMessage());
            }

            return $this->successor->handle($input);
        }

        return $decoded;
    }

    /**
     * Determine if current decoder has a successor
     *
     * @return bool
     */
    protected function hasSuccessor(): bool

Request

https://tinhdaulovely.com/thumbs/432x432x2/upload/product/190-3041.png
GET
curl "https://tinhdaulovely.com/thumbs/432x432x2/upload/product/190-3041.png" \
   -X GET \
   -H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7' \
   -H 'accept-encoding: gzip, deflate, br, zstd' \
   -H 'connection: close' \
   -H 'host: tinhdaulovely.com' \
   -H 'pragma: no-cache' \
   -H 'user-agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)' \
   -H 'cache-control: no-cache' \
   -H 'x-forwarded-for: 18.119.166.130' \
   -H 'x-real-ip: 18.119.166.130' \
   -H 'x-forwarded-host: tinhdaulovely.com' \
   -H 'x-forwarded-server: tinhdaulovely.com' \
   -H 'sec-ch-ua: "HeadlessChrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"' \
   -H 'sec-ch-ua-mobile: ?0' \
   -H 'sec-ch-ua-platform: "Windows"' \
   -H 'upgrade-insecure-requests: 1' \
   -H 'sec-fetch-site: none' \
   -H 'sec-fetch-mode: navigate' \
   -H 'sec-fetch-user: ?1' \
   -H 'sec-fetch-dest: document' \
   -H 'priority: u=0, i';

Browser

Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)

Headers

accept
text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
accept-encoding
gzip, deflate, br, zstd
connection
close
host
tinhdaulovely.com
pragma
no-cache
user-agent
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
cache-control
no-cache
x-forwarded-for
18.119.166.130
x-real-ip
18.119.166.130
x-forwarded-host
tinhdaulovely.com
x-forwarded-server
tinhdaulovely.com
sec-ch-ua
"HeadlessChrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"
sec-ch-ua-mobile
?0
sec-ch-ua-platform
"Windows"
upgrade-insecure-requests
1
sec-fetch-site
none
sec-fetch-mode
navigate
sec-fetch-user
?1
sec-fetch-dest
document
priority
u=0, i

Body

[]

Context

Versions

Php Version
8.2.26