Generation test

This commit is contained in:
2025-12-16 00:14:23 +01:00
parent d0d05d7a79
commit 8a587e4620
10 changed files with 14 additions and 33 deletions

View File

@@ -61,10 +61,10 @@ def convert_to_png(diagrams):
with open(temp_file, 'w', encoding='utf-8') as f:
f.write(diagram['code'])
# Convert using mmdc
# Convert using mmdc with higher resolution for better readability
try:
result = subprocess.run(
[MMDC, '-i', temp_file, '-o', output_file, '-b', 'white', '-w', '800'],
[MMDC, '-i', temp_file, '-o', output_file, '-b', 'white', '-w', '1600', '-s', '2'],
capture_output=True,
text=True,
timeout=60