added docker compose to run everything in one go

This commit is contained in:
2024-05-12 15:29:36 +01:00
parent 0c0d16c846
commit 516d1d7634
18 changed files with 184 additions and 91 deletions

View File

@@ -54,21 +54,29 @@ func loadBaseImage(c *Context, id string) {
model_color = "greyscale"
case color.NRGBAModel:
fallthrough
case color.RGBAModel:
fallthrough
case color.YCbCrModel:
model_color = "rgb"
default:
c.Logger.Error("Do not know how to handle this color model")
if src.ColorModel() == color.RGBA64Model {
c.Logger.Error("Color is rgb")
c.Logger.Error("Color is rgb 64")
} else if src.ColorModel() == color.NRGBA64Model {
c.Logger.Error("Color is nrgb 64")
} else if src.ColorModel() == color.AlphaModel {
c.Logger.Error("Color is alpha")
} else if src.ColorModel() == color.CMYKModel {
c.Logger.Error("Color is cmyk")
} else if src.ColorModel() == color.NRGBA64Model {
c.Logger.Error("Color is cmyk")
} else if src.ColorModel() == color.NYCbCrAModel {
c.Logger.Error("Color is cmyk a")
} else if src.ColorModel() == color.Alpha16Model {
c.Logger.Error("Color is cmyk a")
} else {
c.Logger.Error("Other so assuming color")
c.Logger.Error("Other so assuming color", "color mode", src.ColorModel())
}
ModelUpdateStatus(c, id, FAILED_PREPARING)