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

Exported png files are very low resolution #715

Open
zioalex opened this issue Jul 16, 2024 · 1 comment
Open

Exported png files are very low resolution #715

zioalex opened this issue Jul 16, 2024 · 1 comment

Comments

@zioalex
Copy link

zioalex commented Jul 16, 2024

Describe the bug
When converting a mermaid file to png the resolution of the text is very low.
Didn't find any way to change the resolution of the output file.

To Reproduce
Steps to reproduce the behavior:

  1. Run mmdc -i process1.mmd -o process1.png -p ./puppepteerConfigFile.json
  2. check process1.png

Expected behavior
The png created should be high enough resolution to read clearly the text

Screenshots
If applicable, add screenshots to help explain your problem.

image

Desktop (please complete the following information):

  • OS: Linux Docker container in Windows 11

Additional context
Add any other context about the problem here.

Follow the mermaid code:

graph TD
  A[Start] --> E{Launch the Data Analysis script<BR> <b><i>python data_analysis.py</b></i>}
  E --> I[Output example <i>Processing data in ./data_output/2024-03-11_10-01/PROJECT-XYZ/Analysis - PROD- DataFile.txt_analysis.json AnalyzerName: PostgresDB, Confirmed: 0, Not Confirmed: 24 Project Total Records: 24 Total Records: 1405</i>]
  I --> K{Initiate report generation and notification sending <b><i>python notification.py</b></i>}
  K --> L[Notification is sent following the template <b><i>mail_templates/notification_template_attachment.html</b></i>]
  L --> M[Output example <i>Record: 2 projects without projectManager 0 projects with projectManager Found a total number of 5 impacted data records<BR> Sent a total number of 0 notifications</i> Notification sending process needs to be enabled with the flag <b><i>--send_notifications</b></i> ]
  M --> P[Output files created <i>notification_CURRENT_DATE.txt notification_CURRENT_DATE_brief.csv</i> used later for data analysis]
  P --> Q[Usually, a 1 month notice period is given to address the issues.]
  Q --> S[End]

Observed that I split the longest line
E --> I[Output example <i>Processing data in ./data_output/2024-03-11_10-01/PROJECT-XYZ/Analysis - PROD- DataFile.txt_analysis.json<BR>AnalyzerName: PostgresDB, Confirmed: 0, Not Confirmed: 24 Project Total Records: 24 Total Records: 1405</i>]
With a <BR> the situation improve.

@mzhubail
Copy link
Contributor

mzhubail commented Aug 8, 2024

@zioalex

You can use scale (-s) to increase the quality. Running your snippet with the added -s 3 gave me better quality.

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

No branches or pull requests

2 participants