Repository navigation
feat(vector): read Adobe Illustrator templates (.ait) - #1774
Conversation
An Illustrator template is stored like a normal .ai file; only the name differs. Add .ait to the read-only AI format so it takes every existing AI route (PDF-compatible through PDF, PostScript-based through Ghostscript), and teach upgraded libraries the extension on the vector donut (schema 102). Fixes KnifeLemon#1726 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
KnifeLemon
left a comment
There was a problem hiding this comment.
Thanks, @YusufMntm. A second extension on the read-only ai format is the right shape:
- every AI route applies to
.aitunchanged (PDF-compatible files directly, PostScript ones through Ghostscript); .aistays the primary extension, and Filee never writes.ait;- the v102 step lets existing libraries learn
.aitwithout moving a custom claim.
CI is green.
#1794 takes schema 102 too. I'll renumber whichever of the two merges second myself, so you don't need to.
|
Merged |
…#1794's v102 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Merged |
Main took schema 103-106 (.jsp, sequence alignments, .blp, CBR), so the .ait step moves to v107. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Merged
|
# Conflicts: # CHANGELOG.md
|
Merged |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Merged
|
KnifeLemon#1935 took schema step 108 for .wbk, so the .ait step moves to v109. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Merged
|
.3ds took settings schema 109 on main, so the .ait step becomes v110 (CurrentSchemaVersion 110) and AitAliasTests migrates from 109. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"ait" joins SharedPresetVersions.Extensions (2.6.0), as an extension added to the existing AI format. CHANGELOG gets an Unreleased bullet and a ko/en update line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@YusufMntm we pushed a few things to your branch so this can go in:
Thanks! |
# Conflicts: # CHANGELOG.md
Fixes #1726
What and why
An Illustrator template (
.ait) is stored exactly like an Illustrator file (.ai): a PDF-compatible file, or aPostScript one from older versions. Only the name tells Illustrator to open it as a new untitled document. Filee
already converts
.ai, but didn't know the.aitname, so templates were refused.Design
.aitis a second extension of the existing read-onlyaiformat inFormatRegistry(the wayepslistsepsf/epsi), not a new format id. It therefore takes every existing AI route unchanged: PDF-compatible files gothrough PDF out of the box, PostScript-based ones through Ghostscript.
VectorConverteralready decides by thefile's header, not its extension, and
.aistays the primary extension; Filee never writes.ait.FormatFieldsneeds no change: the grade and thedesignfield belong to the format, so.aitinherits them..aiton the vector donut throughLearnExtensions, as earlier alias PRs did,so a profile that already claims
.aitkeeps it. If another PR takes 102 first I'll renumber.docs/ENGINES.mdand aCHANGELOG.mdentry with its ko/en update lines.Tests
FormatRegistryTests.Detects_formats:template.ait→ai.AitAliasTests: detection (any case) and the vector donut, AI still read-only with.aias primary extension,web sniffing keeps the
.aitname for a PDF-compatible download, and the v101 → v102 migration (adds.aitonce,leaves a custom claim alone).
GraphicsTests.Illustrator_templates_convert_like_illustrator_files: a PDF-compatible.aitbuilt in the testconverts to PDF and PNG like the existing
.aitest.Ran locally (Windows):
Filee.Core.Testsall 1796 pass,GraphicsTests57 pass (3 Ghostscript-only skips),dotnet format --verify-no-changeson the changed files.Not tried: a real template saved by Illustrator, or a PostScript-based
.ait(Ghostscript isn't installed here).That path is the same Ghostscript step
.aialready uses.🤖 Generated with Claude Code