From f025e60f90410dde94fc222e5ed35a3cdfda30a6 Mon Sep 17 00:00:00 2001 From: Wadym Date: Thu, 3 Aug 2023 10:51:32 +0200 Subject: [PATCH 1/2] deletes default height and width of an image --- utils/indigo-service/backend/service/v2/validation.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/utils/indigo-service/backend/service/v2/validation.py b/utils/indigo-service/backend/service/v2/validation.py index c9917be878..0a14c92289 100644 --- a/utils/indigo-service/backend/service/v2/validation.py +++ b/utils/indigo-service/backend/service/v2/validation.py @@ -38,8 +38,6 @@ class IndigoRendererSchema(InputFormatSchema): output_format = fields.Str( missing="image/svg+xml", validate=OneOf(images_formats) ) - width = fields.Str(missing="200px") - height = fields.Str(missing="200px") struct = fields.Str(missing=None) query = fields.Str(missing=None) options = fields.Dict(missing={}) From dd7bc0d81c7da8334509f04bab63a9fb6881c5a5 Mon Sep 17 00:00:00 2001 From: Vadym Golovko Date: Tue, 8 Aug 2023 08:04:33 -0500 Subject: [PATCH 2/2] deletes unnecessary settings for width and height in indigo_api.py --- utils/indigo-service/backend/service/v2/indigo_api.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/utils/indigo-service/backend/service/v2/indigo_api.py b/utils/indigo-service/backend/service/v2/indigo_api.py index a5c92a8aa0..ece09946f4 100644 --- a/utils/indigo-service/backend/service/v2/indigo_api.py +++ b/utils/indigo-service/backend/service/v2/indigo_api.py @@ -1500,8 +1500,6 @@ def render(): # indigo = md.struct._session # indigo = indigo_init(data["options"]) indigo.setOption("render-coloring", True) - indigo.setOption("render-image-width", data["width"]) - indigo.setOption("render-image-height", data["height"]) content_type = data["output_format"] if "render-output-format" in data["options"]: rof = data["options"]["render-output-format"]