diff --git a/CHANGELOG.md b/CHANGELOG.md
index 64f25f35f..bd7774881 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -112,6 +112,8 @@ ko: 이미지 고화질 확대에서 타일 크기(자동 또는 32–512 px)를
en: Upscale lets you pick a tile size (Automatic or 32–512 px) so large pictures fit on GPUs with less memory
ko: 3D Studio 모델(.3ds)을 OBJ, GLB, STL 같은 3D 형식이나 PNG 미리보기로 변환할 수 있어요
en: 3D Studio models (.3ds) convert to OBJ, GLB, STL and the other 3D formats, and to a PNG preview
+ko: Adobe Illustrator 템플릿(.ait)을 벡터 도넛에서 열어 AI 파일처럼 PDF나 PNG 등으로 변환할 수 있어요
+en: Adobe Illustrator templates (.ait) open on the vector donut and convert like AI files, to PDF, PNG and more
ko: PDF·Word·웹 페이지의 표를 Excel로 바꿀 때 머리글 병합은 남기고 여러 행에 걸친 분류는 행마다 채우도록 고를 수 있어서 필터와 피벗 테이블에 쓰기 좋아요 (새 프리셋의 기본값)
en: Tables from PDF, Word and web pages can keep their header merges in Excel and fill categories into every row, ready for filters and pivot tables (new presets do this by default)
-->
@@ -197,6 +199,10 @@ en: Tables from PDF, Word and web pages can keep their header merges in Excel an
Z-up scenes upright; keyframer animations, cameras and lights are skipped, and non-3DS files (such as Nintendo 3DS
ROMs) or damaged chunks are refused. Filee reads `.3ds` only and does not write it.
+- **Adobe Illustrator templates (.ait)** (by @YusufMntm, #1726). An `.ait` template is an Illustrator file inside, so
+ it now opens on the vector donut and converts as an `.ai` does: PDF-compatible ones straight to PDF, PNG and the other
+ images, PostScript-based ones through Ghostscript. Filee reads `.ait` only and does not write it.
+
- **HEIC photos make small PDFs** (#1873). Converting HEIC (or HEIF) photos to PDF, or putting them into one with
**Merge PDF**, stored each photo losslessly, so a 1.7 MB phone photo made a PDF of about 13 MB that looked no
better. HEIC photos now go into the PDF as JPEG at high quality, like JPG photos already did, so the PDF stays close
diff --git a/README.md b/README.md
index e3f408833..03fc9123d 100644
--- a/README.md
+++ b/README.md
@@ -173,7 +173,7 @@ To undo it, remove the entries in Windows Security → App & browser control →
| From | To |
|---|---|
| **Images**: JPG, PNG, WEBP, AVIF, TIFF, BMP, GIF, APNG, ICO, ICNS, JPEG XL, JPEG 2000, PSD/PSB, TGA, PPM, HEIC, QOI, DDS, PCX, MNG, CUR, …;
camera RAW (CR2, CR3, NEF, ARW, DNG, …), DICOM, OpenEXR, HDR, FITS, SRTM elevation tiles (HGT), JPEG XR (Windows), iPhone Live Photo (LIVP), Insta360 INSP, Windows program icons (EXE, DLL), Valve Texture VTF (Source engine, Garry's Mod), Blizzard Texture BLP (Warcraft III, World of Warcraft), animated cursor (ANI) read;
GIMP XCF and Paint.NET PDN (layers kept between XCF, PDN and PSD) | any of these (HEIC⁵), GIMP XCF, Paint.NET PDN, VTF, PDF, SVG (traced), resized, grayscale;
Live/Motion Photos (iPhone, Android) → their video (MP4, MOV⁵), and a video → Live Photo (iPhone) or Motion Photo (Android)⁵, experimental |
-| **Vector**: SVG, SVGZ, EMF, WMF, AI
EPS, PS¹
CDR, VSD, CGM, ODG, FODG²
Obsidian Canvas (JSON Canvas), embroidery designs (Tajima DST, Janome JEF) read | PDF (vector), PNG and other images,
SVG ↔ SVGZ, SVG → DXF/DWG, PDF → EPS/PS¹, SVG → EMF, WMF, ODG²;
Obsidian Canvas → its text as Markdown |
+| **Vector**: SVG, SVGZ, EMF, WMF, AI/AIT
EPS, PS¹
CDR, VSD, CGM, ODG, FODG²
Obsidian Canvas (JSON Canvas), embroidery designs (Tajima DST, Janome JEF) read | PDF (vector), PNG and other images,
SVG ↔ SVGZ, SVG → DXF/DWG, PDF → EPS/PS¹, SVG → EMF, WMF, ODG²;
Obsidian Canvas → its text as Markdown |
| **PDF** | DOCX, XLSX (tables), HWPX, TXT, PNG, JPG, TIFF, CBZ, PPTX (a picture of each page), SVG², PDF/A¹;
merge (in an order you choose first), split (by pages, every N pages or into equal parts), page ranges, compress (smaller PDFs) |
| **Documents**: DOCX, DOCM, DOTX, EML, Outlook MSG;
OFD (Chinese e-invoices, official documents), Word backup (WBK: DOCX built in, DOC²) read
DOC, ODT, FODT, OTT, RTF, WPS, WPD, Pages, ClarisWorks, MacWrite, T602, …² | PDF, DOCX, HWPX, EPUB, TXT, HTML;
DOCX, HTML tables → XLSX, ODS, CSV;
MSG → EML
ODT, FODT, OTT² |
| **Spreadsheets**: XLSX, XLSM, XLS, XLT, ODS, CSV, TSV
OTS, FODS, Numbers, ET² | PDF, XLSX, ODS, CSV, TSV, JSON, HWPX, HTML
XLT, OTS² |
diff --git a/docs/ENGINES.md b/docs/ENGINES.md
index a84ddae7f..65e0a1313 100644
--- a/docs/ENGINES.md
+++ b/docs/ENGINES.md
@@ -7,7 +7,7 @@ Filee chooses engines automatically. Settings → *Engines* shows their status,
|---|---|---|
| ImageMagick (Magick.NET) | built in (library) | JPG, PNG, WEBP, TIFF, BMP, GIF, ICO, AVIF, JPEG XL, JPEG 2000, PSD/PSB, TGA, PPM, MNG, QOI, DDS, PCX, CUR, XPM, XBM, WBMP, PAM, PFM, SGI, Sun Raster, MIFF ↔ each other, and **APNG** (Filee's own reader and writer); HEIC (written with FFmpeg), camera RAW (LibRaw), DICOM (uncompressed ones by Filee's own reader), **FITS** (Filee's own reader; TIFF at the file's own depth by Filee's own writer), **SRTM elevation tiles (`.hgt`)** (Filee's own reader; signed 16-bit GeoTIFF by Filee's own writer), Photo CD, OpenEXR, Radiance HDR, EMF/WMF (Windows), the photo of an iPhone LIVP, the merged picture of a Krita KRA, a **Paint.NET PDN** (Filee's own reader and writer: layers merged as Paint.NET shows them, or kept between PDN and PSD/PSB), a **GIMP XCF** (Filee's own reader and writer: layers merged as GIMP shows them, or kept between XCF, PDN and PSD/PSB), a **Valve Texture VTF** (Filee's own reader and writer, for the Source engine and Garry's Mod), a **Blizzard Texture BLP** (Filee's own reader, for Warcraft III and World of Warcraft), the icon of a Windows program or library (EXE, DLL) and a Windows **animated cursor** (ANI, Filee's own reader) read |
| Windows Imaging Component | part of Windows (Windows only) | **JPEG XR** (JXR, WDP, HDP; HDR screenshots of Windows) → the images ImageMagick writes, and PDF, ICNS, HEIC and SVG through PNG; HDR tone-mapped to SDR |
-| Vector graphics | built in (Svg.Skia, SkiaSharp, ACadSharp) | **SVG/SVGZ → PDF (vector) and images**, SVG ↔ SVGZ, **SVG → DXF** (→ DWG with the CAD engine), **raster images → SVG (tracing)**, PDF-compatible AI → PDF, **HP-GL / HP-GL/2 plot files (PLT) → SVG**, PDF and images (pen moves, packed PE polylines, arcs and filled polygons; text labels are not drawn), **Tajima DST and Janome JEF embroidery → SVG** (stitches as lines; DST has no thread colours, so a palette colour per thread, JEF in its threads' Janome chart colours; → PNG, JPG, PDF from there), **Obsidian boards (JSON Canvas `.canvas`) → SVG** (→ PDF, PNG, … from there) **and Markdown** (→ DOCX, HTML, TXT, … from there), **Gerber PCB layers → SVG** (RS-274X / X2, see [below](#gerber-pcb-layers); → PDF, PNG, DXF from there) |
+| Vector graphics | built in (Svg.Skia, SkiaSharp, ACadSharp) | **SVG/SVGZ → PDF (vector) and images**, SVG ↔ SVGZ, **SVG → DXF** (→ DWG with the CAD engine), **raster images → SVG (tracing)**, PDF-compatible AI/AIT → PDF, **HP-GL / HP-GL/2 plot files (PLT) → SVG**, PDF and images (pen moves, packed PE polylines, arcs and filled polygons; text labels are not drawn), **Tajima DST and Janome JEF embroidery → SVG** (stitches as lines; DST has no thread colours, so a palette colour per thread, JEF in its threads' Janome chart colours; → PNG, JPG, PDF from there), **Obsidian boards (JSON Canvas `.canvas`) → SVG** (→ PDF, PNG, … from there) **and Markdown** (→ DOCX, HTML, TXT, … from there), **Gerber PCB layers → SVG** (RS-274X / X2, see [below](#gerber-pcb-layers); → PDF, PNG, DXF from there) |
| ICNS | built in | images → ICNS (16–1024 px), ICNS → images |
| PDFsharp | built in (library) | images → PDF (CMYK pictures stay CMYK), merge, split, page ranges, page organising, lossless rotate and crop-box edits, pages per sheet (N-up), spreadsheet print-studio assembly, **compression** (smaller PDFs, see below), PDFs without their metadata |
| PDFium | built in (library) | PDF → images (multi-page TIFF/GIF supported); CMYK pages → CMYK JPG/TIFF through Ghostscript when it is installed |
@@ -37,7 +37,7 @@ Filee chooses engines automatically. Settings → *Engines* shows their status,
| Archives (7-Zip) | bundled with the installer (`engines/7zip`, ~2.5 MB) + built-in readers | ZIP (including ANSYS Workbench WBPZ), 7Z, RAR, TAR (+ GZ/BZ2/XZ/Z/7Z/LZ), CAB, ISO, DMG, split (.001), Minecraft and Modrinth packs, Garry's Mod addons (GMA), Valve paks (VPK), the files packed into Source maps (BSP), … **→ folder, ZIP, 7Z, TAR, TAR.GZ/BZ2/XZ, the packs, GMA**; ALZ, EGG, lzip, GMA, VPK read in-process; "Compress into one archive" for any files |
| LibreOffice + H2Orestart + Java | **optional download** (~420 MB, 1.3 GB on disk) | older and rare formats only: DOC, XLS, PPT, RTF and OpenDocument → PDF and to each other, output as DOCX/ODT/ODS/ODP; HWP/HWPX → DOCX/ODT; read-only formats (see below) → PDF and their kind's editable formats; FODT, OpenDocument templates (OTT, OTS, OTP) and XLT out; SVG → EMF/WMF/ODG, a PDF page → SVG |
| Pandoc | **optional download** (~42 MB, 240 MB on disk) | Markdown ↔ DOCX/ODT/RTF, DOCX/ODT/HTML/RTF → Markdown, HTML ↔ DOCX/ODT, markup languages (reStructuredText, LaTeX, Org, AsciiDoc, Typst, MediaWiki, DocBook, Jupyter, Textile, man, OPML) ↔ Markdown/HTML/DOCX/ODT and each other (and → RTF, EPUB, TXT), Markdown and markup → PPTX slides |
-| Ghostscript | **optional download** (~20 MB, 31 MB on disk) | EPS/PS → PDF, PDF → EPS/PS, PostScript-based AI → PDF (images through PDF and PDFium); smaller PDFs when a preset asks for it; PDF/A-2b for PDF/A presets; renders CMYK PDF/AI pages for CMYK JPG/TIFF |
+| Ghostscript | **optional download** (~20 MB, 31 MB on disk) | EPS/PS → PDF, PDF → EPS/PS, PostScript-based AI/AIT → PDF (images through PDF and PDFium); smaller PDFs when a preset asks for it; PDF/A-2b for PDF/A presets; renders CMYK PDF/AI pages for CMYK JPG/TIFF |
| Tesseract | **optional download** (~50 MB, 160 MB on disk; each language 0.4–10 MB when first used) | **text recognition (OCR)**: scans and pictures → searchable PDF, and their text into DOCX, TXT, Markdown and HWPX ("Recognize text" in the preset, see below) |
| Apple Vision | part of macOS (Mac only) | **text recognition (OCR) on a Mac**, the same step as Tesseract without a download; Tesseract reads the languages Vision doesn't (see "Apple Vision on macOS") |
| FFmpeg | **optional download** (~100 MB, 272 MB on disk) | **all video and audio**: video ↔ video (H.264, HEVC, AV1), video → animated GIF / APNG / WebP, a still frame or every frame, audio and subtitle extraction, audio ↔ audio (also APE, WavPack, TTA, DSD, DTS, ALAC, …), GIF, APNG and photos → MP4/WEBM/MOV, Live / Motion Photos → their video, a clip of a video → an iPhone Live Photo or Android Motion Photo (experimental), images → HEIC, clips or audio files joined into one, pictures → a slideshow MP4, a video split into parts every so often or into equal parts (copied, not encoded), copies without metadata (see "Media tools") |
@@ -515,7 +515,7 @@ so a separate ARM64 one would break their updates.
lines to a missing card are left out, as Obsidian does.
- **ICNS** files are written with every size iconutil makes (16–1024 px, PNG), the picture centred on a transparent
square; reading takes the largest image (PNG, JPEG 2000 or the old RLE + mask entries).
-- **Illustrator** files saved with "Create PDF compatible file" (the default since Illustrator 9) are PDFs and need
+- **Illustrator** files (`.ai`, and `.ait` templates) saved with "Create PDF compatible file" (the default since Illustrator 9) are PDFs and need
nothing extra; PostScript-based ones need Ghostscript.
- **CMYK pages** (#1027). PDFium renders RGB only, so a print file (a CMYK PDF, or an Illustrator file through its
PDF) → JPG or TIFF is rendered by Ghostscript instead when it is installed: `tiff32nc` (8-bit CMYK) at the preset's
diff --git a/src/Filee.Core/Formats/FormatRegistry.cs b/src/Filee.Core/Formats/FormatRegistry.cs
index fbafe569c..04027b880 100644
--- a/src/Filee.Core/Formats/FormatRegistry.cs
+++ b/src/Filee.Core/Formats/FormatRegistry.cs
@@ -89,7 +89,8 @@ public static class FormatRegistry
new("svgz", "SVGZ", FormatCategory.Vector, ["svgz"]),
new("eps", "EPS", FormatCategory.Vector, ["eps", "epsf", "epsi"]),
new("ps", "PS", FormatCategory.Vector, ["ps"]),
- new("ai", "AI", FormatCategory.Vector, ["ai"], Writable: false),
+ // Illustrator templates (.ait, #1726) have the same PDF/PostScript structure as .ai.
+ new("ai", "AI", FormatCategory.Vector, ["ai", "ait"], Writable: false),
new("emf", "EMF", FormatCategory.Vector, ["emf"]),
new("wmf", "WMF", FormatCategory.Vector, ["wmf"]),
new("cdr", "CDR", FormatCategory.Vector, ["cdr"], Writable: false),
diff --git a/src/Filee.Core/Gallery/SharedPresetVersions.cs b/src/Filee.Core/Gallery/SharedPresetVersions.cs
index f59835b14..9d74b7c62 100644
--- a/src/Filee.Core/Gallery/SharedPresetVersions.cs
+++ b/src/Filee.Core/Gallery/SharedPresetVersions.cs
@@ -70,6 +70,7 @@ internal static class SharedPresetVersions
{
["cxlog"] = "2.6.0",
["jsp"] = "2.6.0",
+ ["ait"] = "2.6.0",
};
/// The first Filee that knows every field written in , a preset.json that passed the allow-list.
diff --git a/src/Filee.Core/Settings/AppSettings.cs b/src/Filee.Core/Settings/AppSettings.cs
index 6e1f5824e..cb3d96cbe 100644
--- a/src/Filee.Core/Settings/AppSettings.cs
+++ b/src/Filee.Core/Settings/AppSettings.cs
@@ -186,7 +186,7 @@ public static bool IsFlipKeyAllowed(string key, IEnumerable gest
public sealed class AppSettings
{
/// Current schema version. Increase when the format changes and add a migration.
- public const int CurrentSchemaVersion = 109;
+ public const int CurrentSchemaVersion = 110;
public int SchemaVersion { get; set; } = CurrentSchemaVersion;
diff --git a/src/Filee.Core/Settings/UserDataStore.cs b/src/Filee.Core/Settings/UserDataStore.cs
index 8fd2b7517..30fcdec1a 100644
--- a/src/Filee.Core/Settings/UserDataStore.cs
+++ b/src/Filee.Core/Settings/UserDataStore.cs
@@ -1257,6 +1257,9 @@ public static bool ApplyToLibrary(int from, List presets, List
+ Assert.Equal("template.ait", WebFormats.NameFor("template.ait", "%PDF-1.6"u8, null));
+
+ [Fact]
+ public void Version_109_libraries_learn_ait_without_taking_custom_claims()
+ {
+ var presets = BuiltInData.CreatePresets();
+ var profiles = BuiltInData.CreateProfiles();
+ var vector = profiles.Single(p => p.Id == "vector");
+ vector.Extensions.Remove("ait");
+ Assert.True(SettingsMigrations.ApplyToLibrary(109, presets, profiles));
+ Assert.Contains("ait", vector.Extensions);
+ Assert.False(SettingsMigrations.ApplyToLibrary(109, presets, profiles));
+
+ vector.Extensions.Remove("ait");
+ profiles.Insert(0, new ToolbarProfile { Id = "my-templates", Extensions = ["AIT"] });
+ Assert.False(SettingsMigrations.ApplyToLibrary(109, presets, profiles));
+ Assert.DoesNotContain("ait", vector.Extensions);
+ Assert.Equal("my-templates", ProfileSelector.Select(profiles, ["template.ait"])?.Id);
+ }
+}
diff --git a/tests/Filee.Core.Tests/SmallParsersTests.cs b/tests/Filee.Core.Tests/SmallParsersTests.cs
index 7a9e1cae5..41146554b 100644
--- a/tests/Filee.Core.Tests/SmallParsersTests.cs
+++ b/tests/Filee.Core.Tests/SmallParsersTests.cs
@@ -36,6 +36,7 @@ public class FormatRegistryTests
[InlineData("archive.zip.001", "split")]
[InlineData("archive.tar.001", "split")]
[InlineData("sketch.kra~", "kra")] // Krita's backup of the previous save
+ [InlineData("template.ait", "ai")] // Adobe Illustrator template
public void Detects_formats(string path, string id) => Assert.Equal(id, FormatRegistry.Detect(path)?.Id);
[Fact]
diff --git a/tests/Filee.Engines.Tests/GraphicsTests.cs b/tests/Filee.Engines.Tests/GraphicsTests.cs
index bec129dec..db27c5512 100644
--- a/tests/Filee.Engines.Tests/GraphicsTests.cs
+++ b/tests/Filee.Engines.Tests/GraphicsTests.cs
@@ -4,6 +4,7 @@
using System.IO.Compression;
using System.Text;
using Filee.Core.Conversion;
+using Filee.Core.Formats;
using Filee.Core.Presets;
using Filee.Engines.Icns;
using Filee.Engines.Magick;
@@ -670,6 +671,27 @@ public async Task Pdf_compatible_illustrator_files_convert_through_pdf()
Assert.Equal((400u, 200u), (png.Width, png.Height));
}
+ [Fact]
+ public async Task Illustrator_templates_convert_like_illustrator_files()
+ {
+ var dir = fx.NewFolder();
+ var svg = Write(dir, "art.svg", GraphicsBuilders.Svg);
+ var pdf = (await fx.ConvertAsync([svg], new Preset { TargetFormat = "pdf" })).Outputs.Single();
+ var ait = Path.Combine(dir, "template.ait");
+ File.Copy(pdf, ait);
+
+ Assert.Same(FormatRegistry.Get("ai"), FormatRegistry.Detect(ait));
+
+ var toPdf = await fx.ConvertAsync([ait], new Preset { TargetFormat = "pdf" });
+ var toPng = await fx.ConvertAsync([ait], new Preset { TargetFormat = "png", Pdf = { RenderDpi = 96 } });
+
+ AssertDone(toPdf);
+ AssertDone(toPng);
+ Assert.Equal(File.ReadAllBytes(ait), File.ReadAllBytes(toPdf.Outputs.Single()));
+ using var png = new MagickImage(toPng.Outputs.Single());
+ Assert.Equal((400u, 200u), (png.Width, png.Height));
+ }
+
[Fact]
public async Task PostScript_illustrator_files_need_ghostscript()
{