Skip to content

Add motor diagrams in png format as the svg is complicated to render#762

Merged
amilcarlucas merged 2 commits into
masterfrom
png_motor_diagrams
Sep 25, 2025
Merged

Add motor diagrams in png format as the svg is complicated to render#762
amilcarlucas merged 2 commits into
masterfrom
png_motor_diagrams

Conversation

@amilcarlucas
Copy link
Copy Markdown
Collaborator

@amilcarlucas amilcarlucas commented Sep 2, 2025

This PR adds new scripts to convert SVG motor diagrams to PNG format to address rendering complexities. The motivation is that SVG files are complicated to render, so pre-rendered PNG versions provide better consistency and performance.

  • Adds interactive SVG viewer application for previewing motor diagrams
  • Adds batch conversion script to process all motor diagrams from SVG to PNG format
  • Uses Firefox-geckodriver for high-quality SVG rendering with image processing pipeline

Copilot AI review requested due to automatic review settings September 2, 2025 00:28
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds new scripts to convert SVG motor diagrams to PNG format to address rendering complexities. The motivation is that SVG files are complicated to render, so pre-rendered PNG versions provide better consistency and performance.

Key changes:

  • Adds interactive SVG viewer application for previewing motor diagrams
  • Adds batch conversion script to process all motor diagrams from SVG to PNG format
  • Uses Firefox-geckodriver for high-quality SVG rendering with image processing pipeline

Reviewed Changes

Copilot reviewed 2 out of 45 changed files in this pull request and generated 4 comments.

File Description
scripts/motor_diagrams_viewer_app.py Interactive Tkinter GUI application for viewing and comparing SVG motor diagrams with size information
scripts/batch_convert_motor_diagrams.py Batch conversion utility that processes all motor diagram SVGs to optimized 200x200 PNG files

Comment thread scripts/motor_diagrams_viewer_app.py
Comment thread scripts/batch_convert_motor_diagrams.py Outdated
Comment thread scripts/motor_diagrams_viewer_app.py Outdated
Comment thread scripts/batch_convert_motor_diagrams.py Outdated
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Sep 2, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
8247 6585 80% 73% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: 1a8fbca by action🐍

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Sep 2, 2025

Test Results

    2 files      2 suites   1m 22s ⏱️
1 653 tests 1 652 ✅ 1 💤 0 ❌
3 306 runs  3 304 ✅ 2 💤 0 ❌

Results for commit 35fa2d4.

♻️ This comment has been updated with latest results.

@amilcarlucas amilcarlucas force-pushed the png_motor_diagrams branch 2 times, most recently from 7124bd1 to 9856b7c Compare September 25, 2025 15:42
@amilcarlucas amilcarlucas merged commit 0cd9aaa into master Sep 25, 2025
13 of 15 checks passed
@amilcarlucas amilcarlucas deleted the png_motor_diagrams branch September 25, 2025 15:56
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

Successfully merging this pull request may close these issues.

2 participants