26 format file, masing-masing dibuat dengan ukuran tepat
Masing-masing adalah file asli dari format itu. File terbuka di aplikasi yang memilikinya dan persis berjumlah byte yang Anda minta. Tidak ada yang berupa nol pengisi dengan ekstensi yang ditempelkan.
| Format | Nama | Ekstensi | File terkecil | Kelengkapan | Diperiksa dengan |
|---|---|---|---|---|---|
avif |
AV1 Image File Format | .avif |
311 | full | pillow |
bmp |
Windows Bitmap | .bmp |
58 | full | pillow |
csv |
Comma-Separated Values | .csv |
115 | full | python-csv |
docx |
Word (Office Open XML) | .docx |
1220 | full | libreoffice |
gif |
Graphics Interchange Format | .gif |
114 | full | pillow |
html |
HyperText Markup Language | .html |
118 | full | python-html |
ico |
Windows Icon | .ico |
70 | full | pillow |
jpg |
JPEG | .jpg |
602 | full | pillow |
json |
JavaScript Object Notation | .json |
219 | full | node-json |
jxl |
JPEG XL | .jxl |
147 | full | pillow-jxl |
log |
Server and application log | .log |
155 | full | tidak berlaku |
md |
Markdown | .md |
0 | full | tidak berlaku |
pdf |
Portable Document Format | .pdf |
3415 | full | pdftotext |
png |
Portable Network Graphics | .png |
74 | full | pillow |
pptx |
PowerPoint (Office Open XML) | .pptx |
4809 | full | libreoffice |
svg |
Scalable Vector Graphics | .svg |
194 | full | inkscape |
targz |
tar + gzip | .tar.gz |
9790 | full | 7z |
tiff |
Tagged Image File Format | .tiff |
183 | full | pillow |
toml |
TOML | .toml |
212 | full | python-toml |
txt |
Plain text | .txt |
0 | full | tidak berlaku |
wav |
Waveform Audio | .wav |
98 | full | ffprobe |
webp |
WebP | .webp |
148 | full | pillow |
xlsx |
Excel (Office Open XML) | .xlsx |
1726 | full | libreoffice |
xml |
Extensible Markup Language | .xml |
264 | full | python-xml |
yaml |
YAML | .yaml |
241 | full | python-yaml |
zip |
ZIP | .zip |
8382 | full | 7z |
Arti kolom-kolom
-
File terkecil
Jumlah byte paling sedikit yang akan diterima alat ini untuk format itu, termasuk label yang ditulisnya di dalam file. Minta lebih kecil dan Anda mendapat galat yang menyebut batas bawah dan alasannya, tidak pernah file berukuran salah.
-
Kelengkapan
Seberapa lengkap file itu.
fullberarti pembaca yang benar-benar mem-parsing format menerimanya, bukan sekadar ekstensinya cocok. -
Diperiksa dengan
Pembaca independen yang membuka setiap file yang dihasilkan sebelum format dirilis - implementasi terpisah, bukan kode kami sendiri yang menilai pekerjaan rumahnya sendiri.
Setiap format juga berulang sampai ke byte: resep dan seed yang sama menghasilkan file identik di mesin mana pun, dan itulah yang membuat resep aman di-commit menggantikan fixture-nya.
Pengaturan yang diterima setiap format
Sebagian besar format punya pengaturan sendiri - dimensi gambar, kualitas JPEG, jumlah halaman PDF,
baris dan kolom spreadsheet, berapa banyak entri di dalam arsip. Atur dengan --set
key=value di baris perintah, atau di bawah properties: dalam resep.
tfg generate --format jpg --size 500kb --set width=1920 --set height=1080 --set quality=85
| Format | Pengaturan | Menerima |
|---|---|---|
avif |
width |
1 - 16384 piksel |
height |
1 - 16384 piksel | |
quality |
1 - 100 | |
bmp |
width |
1 - 20000 piksel |
height |
1 - 20000 piksel | |
csv |
delimiter |
comma, pipe, semicolon, tab |
line_ending |
crlf, lf | |
header |
benar atau salah | |
quote_style |
all, minimal, none | |
columns |
2 - 32768 kolom | |
docx |
paragraphs |
1 - 50000 paragraf |
gif |
width |
1 - 20000 piksel |
height |
1 - 20000 piksel | |
frames |
1 - 60 | |
html |
structure |
document, fragment |
ico |
width |
1 - 256 piksel |
height |
1 - 256 piksel | |
embed |
bmp, png | |
jpg |
width |
1 - 20000 piksel |
height |
1 - 20000 piksel | |
quality |
1 - 100 | |
json |
formatting |
indented, minified, record-per-line |
jxl |
width |
1 - 16384 piksel |
height |
1 - 16384 piksel | |
quality |
1 - 100 | |
log |
entry_format |
apache-combined, apache-common, json-lines, nginx, plain, syslog |
timestamps |
advancing, fixed | |
rate |
1 - 1000000 entri per detik | |
methods |
get, mixed, read | |
status_mix |
client-errors, realistic, server-errors, success | |
level_mix |
debug, errors, quiet, realistic | |
ip_version |
mixed, v4, v6 | |
line_ending |
crlf, lf | |
md |
encoding |
utf-16be, utf-16le, utf-8 |
bom |
benar atau salah | |
pdf |
pages |
1 - 5000 |
page_size |
a3, a4, a5, legal, letter, mixed | |
orientation |
landscape, mixed, portrait | |
rotate |
0, 90, 180, 270 | |
pdf_version |
1.4, 1.7 | |
title |
teks apa pun | |
author |
teks apa pun | |
subject |
teks apa pun | |
keywords |
teks apa pun | |
creator |
teks apa pun | |
producer |
teks apa pun | |
created |
tanggal seperti 2024-02-29 atau 2024-02-29T13:45:00+02:00, atau none | |
modified |
tanggal seperti 2024-02-29 atau 2024-02-29T13:45:00+02:00, atau none | |
png |
width |
1 - 20000 piksel |
height |
1 - 20000 piksel | |
pptx |
slides |
1 - 500 slide |
svg |
width |
1 - 20000 piksel |
height |
1 - 20000 piksel | |
targz |
entries |
0 - 10000 |
entry_format |
id sebuah format, seperti yang didaftar tfg formats | |
entry_size |
ukuran seperti 2mb | |
compression |
best, default, fast, none | |
depth |
0 - 50 | |
directory_entries |
benar atau salah | |
entry_mode |
000, 400, 444, 600, 644, 664, 666, 700, 755, 777 | |
entry_owner |
root, unset, user | |
tiff |
width |
1 - 20000 piksel |
height |
1 - 20000 piksel | |
txt |
encoding |
utf-16be, utf-16le, utf-8 |
bom |
benar atau salah | |
wav |
sample_rate |
8000 - 192000 hertz |
bit_depth |
8, 16, 24, 32 | |
channels |
1 - 8 | |
content |
noise, silence, sweep, tone | |
webp |
width |
1 - 16383 piksel |
height |
1 - 16383 piksel | |
xlsx |
rows |
1 - 200000 baris |
columns |
1 - 32768 kolom | |
xml |
encoding |
utf-16be, utf-16le, utf-8 |
bom |
benar atau salah | |
zip |
entries |
0 - 10000 |
entry_format |
id sebuah format, seperti yang didaftar tfg formats | |
entry_size |
ukuran seperti 2mb | |
compression |
best, default, fast, none | |
depth |
0 - 50 | |
directory_entries |
benar atau salah | |
password |
kata sandi, dalam teks biasa | |
encryption |
aes-128, aes-192, aes-256, none, zipcrypto |
Nilai di luar yang diterima suatu pengaturan ditolak dengan pesan yang menyebut pengaturan, rentang yang diizinkan, dan apa yang dipakai sebagai gantinya. Pengaturan yang tidak dikenal juga galat, tidak pernah nilai bawaan diam-diam - salah ketik yang diterima diam-diam menghasilkan file dengan pengaturan yang salah dan satu jam bertanya-tanya mengapa pengujian lolos padahal seharusnya tidak.
Jalankan tfg formats <id> untuk melihat persis apa yang diterima satu format pada
build yang Anda miliki.
Arsip berisi file asli
targz dan zip
dapat diisi dengan entri alih-alih dibiarkan sebagai cangkang kosong. Arsip yang dihasilkan
benar-benar berisi dokumen yang diklaimnya, sehingga apa pun yang mengekstraknya selama
pengujian menemukan file asli di dalamnya.
targets:
- id: bundle
format: zip
contains:
- format: txt
count: 200
size: 4kb