fixed migrations, changed settings to global settings, changed image list to have a "delete all" button instead of "create", fixed printing, added imagick for printing.

This commit is contained in:
2025-08-26 10:39:18 +02:00
parent 44dd0f2867
commit 9b1f6a479f
69 changed files with 17232 additions and 1263 deletions

View File

@@ -124,6 +124,21 @@ class ComfyUi implements ApiPluginInterface
$modelParams = $style->aiModel->parameters ?? [];
$styleParams = $style->parameters ?? [];
// Ensure both parameters are arrays, decode JSON if needed
if (is_string($modelParams)) {
$modelParams = json_decode($modelParams, true);
if (json_last_error() !== JSON_ERROR_NONE) {
$modelParams = [];
}
}
if (is_string($styleParams)) {
$styleParams = json_decode($styleParams, true);
if (json_last_error() !== JSON_ERROR_NONE) {
$styleParams = [];
}
}
if (empty($modelParams) && empty($styleParams)) {
throw new \Exception('ComfyUI workflow (parameters) is missing.');
}