structurizr / ui

UI code for Structurizr Lite, on-premises, and cloud service.
https://docs.structurizr.com/ui
MIT License
43 stars 27 forks source link

Export documentation to offline html page with image view #18

Closed aidmax closed 1 year ago

aidmax commented 1 year ago

Description

Export documentation to offline html page containing image view in PNG format returns empty page.

Steps to reproduce

  1. Run structurizr docker run -it --rm -p 8080:8080 -v "${PWD}":/usr/local/structurizr structurizr/lite
  2. Add image view to workspace file
  3. Create a markdown file embedding the image
  4. Click "Export to offline HTML page"

Screenshot

SCR-20230503-p4p

Code sample

workspace {

    !docs docs
    model {
        user = person "User"
        softwareSystem = softwareSystem "Software System"

        user -> softwareSystem "Uses"
    }

    views {
        systemContext softwareSystem "Diagram1" {
            include *
            autoLayout
        }
        image * "Image1" {
            image img.png
        }
    }

}

=============================
## Text

![](embed:Diagram1)

![](embed:Image1)

Configuration

Structurizr Lite 2023-05-03T14:53:46.753Z INFO 1 --- [ main] com.structurizr.lite.StructurizrLite : - build: 3055 (2023-05-03T07:45:06Z 2023-05-03T14:53:46.755Z INFO 1 --- [ main] com.structurizr.lite.StructurizrLite : - structurizr-java: v1.24.1 2023-05-03T14:53:46.765Z INFO 1 --- [ main] com.structurizr.lite.StructurizrLite : - structurizr-dsl: v1.30.1 2023-05-03T14:53:46.766Z INFO 1 --- [ main] com.structurizr.lite.StructurizrLite : - structurizr-import: v1.4.1

Severity

Minor

Priority

Low

Resolution

I have no budget, please fix this for free

More information

No response

aidmax commented 1 year ago

Thanks for taking quick action )