Skip to content

Fix error when taking PNG screenshots#1534

Open
grossmj wants to merge 1 commit intomaster-3.0from
bugfix/1506
Open

Fix error when taking PNG screenshots#1534
grossmj wants to merge 1 commit intomaster-3.0from
bugfix/1506

Conversation

@grossmj
Copy link
Copy Markdown
Member

@grossmj grossmj commented Dec 23, 2024

No description provided.

@grossmj grossmj linked an issue Dec 23, 2024 that may be closed by this pull request
yueguobin added a commit to yueguobin/gns3-web-ui that referenced this pull request Mar 26, 2026
…icons (GNS3#1534)

Enable PNG screenshot export on all platforms (Linux/macOS/Windows) and fix
missing icons when exporting custom symbols cached as blob URLs.

Changes:
- Remove Windows-only restriction for PNG export (isPngAvailable = true)
- Remove DeviceDetectorService dependency (no longer needed)
- Fix blob URL icons not appearing in PNG exports:
  * Detect blob URLs vs server symbol URLs
  * Fetch blob content directly from browser cache
  * Use importNode to properly inline SVG with viewBox
- Improve PNG export robustness:
  * Use cloneNode() to avoid modifying original SVG
  * Add try-catch error handling with user feedback
  * Process embedded images with better error recovery
- Add ToasterService for error notifications

Resolves GNS3#1534

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@yueguobin
Copy link
Copy Markdown

commit 9b0b1af

2026-03-27_01-50-46.mp4

@grossmj grossmj linked an issue Mar 27, 2026 that may be closed by this pull request
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.

Error taking png screenshot on web-ui

2 participants