Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated diagram does not include metadata. #35

Open
dchan0629 opened this issue Jan 9, 2025 · 2 comments
Open

Generated diagram does not include metadata. #35

dchan0629 opened this issue Jan 9, 2025 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@dchan0629
Copy link

Description
Generated diagrams does not include PlantUML metadata.

Reproduction
Steps to reproduce the behavior:

  1. Write a PlantUML diagram script in a file named pumltest.puml
  2. Refresh the PlantUM View to show diagram
  3. Save diagram in PNG/SVG format or right click to export diagram in PNG/SVG format
  4. Check the saved PNG/SVG diagram for metadata content (java -Dfile.encoding-UTF-8 -jar plantuml.jar -metadata -charset UTF-8 pumltest.png
    image

Expected behavior
Expected the PlantUML script is embedded in the PNG/SVG diagram file.
image

Environment

  • Windows: Windows 10
  • Notepad++ version: 8.7.5 (64-bit)
  • PlantUML Viewer: 1.8.0.12

Additional information
Using the plantuml-1.2024.8.jar (included in the PlantUML plugin) command line to generate PNG/SVG diagrams does contain metadata. However, the diagram exported from the PlantUML Viewer is missing the metadata.

@dchan0629 dchan0629 added the bug Something isn't working label Jan 9, 2025
@Fruchtzwerg94
Copy link
Owner

Hi @dchan0629 ,

thanks for reporting.
PlantUmlViewer rerenders the images generated by plantuml, this means exported images are not the original plantuml images anymore. Content like image metadata gets lost here.

Your report therefore can be seen more as a feature than a bug but definitively a potential feature / improvement for the future. But it definitively needs a few modifications in the code.

BR,
Philipp

@Fruchtzwerg94 Fruchtzwerg94 added enhancement New feature or request and removed bug Something isn't working labels Jan 12, 2025
@Fruchtzwerg94 Fruchtzwerg94 changed the title [BUG] Generated diagram does not include metadata. Generated diagram does not include metadata. Jan 12, 2025
@dchan0629
Copy link
Author

dchan0629 commented Jan 12, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants