Skip to content

Write embedded schematic PNG images - #101

Closed
ShiboSoftwareDev wants to merge 4 commits into
mainfrom
codex/write-schematic-images
Closed

Write embedded schematic PNG images#101
ShiboSoftwareDev wants to merge 4 commits into
mainfrom
codex/write-schematic-images

Conversation

@ShiboSoftwareDev

@ShiboSoftwareDev ShiboSoftwareDev commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Why

A schematic image record is not sufficient for a native Altium SchDoc. Embedded PNG bytes must also be written into the document /Storage stream. circuit-json-to-altium#107 needs this low-level writer for the PiDP open-source and GitHub artwork.

What changed

  • Encode PNG images into the native binary SchDoc /Storage stream.
  • Retain the bitmap preview and native PNG payload expected by Altium.
  • Match storage entries by normalized filename so an external-image record cannot take an embedded payload.
  • Keep the branch current with the latest schematic renderer behavior.

Validation

  • bun test tests/binary-schematic-document-creation.test.ts — 3 passed, 11 assertions
  • bun run typecheck
  • bun run format:check
  • bun run build
  • git diff --check

@vercel

vercel Bot commented Aug 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
altiumts Error Error Sep 3, 2026 2:02pm UTC

Request Review

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.

1 participant