Generation test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user