diff --git a/spatialprofilingtoolbox/apiserver/app/main.py b/spatialprofilingtoolbox/apiserver/app/main.py index 99f7a1dd7..0ea60ac0c 100644 --- a/spatialprofilingtoolbox/apiserver/app/main.py +++ b/spatialprofilingtoolbox/apiserver/app/main.py @@ -543,4 +543,5 @@ async def importance_fraction_plot( buffer = BytesIO() buffer.write(raw) buffer.seek(0) - return StreamingResponse(buffer, media_type=f"image/{img_format}") + media_type = "image/svg+xml" if img_format == "svg" else "image/png" + return StreamingResponse(buffer, media_type=media_type) diff --git a/version.txt b/version.txt index 81566e4e2..022a03374 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.27.0 \ No newline at end of file +0.28.0 \ No newline at end of file