{"record":{"id":"7caf8df640275fa3","repo":"coollabsio/coolify","slug":"unable-to-compress-the-profile-picture","errorCode":null,"errorMessage":"Unable to compress the profile picture.","messagePattern":"Unable to compress the profile picture\\.","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"app/Services/AvatarStorageService.php","lineNumber":142,"sourceCode":"            $source,\n            0,\n            0,\n            (int) (($sourceWidth - $cropSize) / 2),\n            (int) (($sourceHeight - $cropSize) / 2),\n            256,\n            256,\n            $cropSize,\n            $cropSize,\n        );\n\n        ob_start();\n        imagejpeg($target, null, 80);\n        $contents = ob_get_clean();\n        imagedestroy($source);\n        imagedestroy($target);\n\n        if (! is_string($contents)) {\n            throw new RuntimeException('Unable to compress the profile picture.');\n        }\n\n        return $contents;\n    }\n}\n","sourceCodeStart":124,"sourceCodeEnd":148,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Services/AvatarStorageService.php#L124-L148","documentation":"Error \"Unable to compress the profile picture.\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Services/AvatarStorageService.php:142 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"70b9acc42467278373e00de77abb40684e25b395","analyzedAt":"2026-08-17T01:41:01.313Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}