@oim-media/spec 1.36.5 → 1.36.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CANONICAL_SPEC.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  > This document describes **1.x** (legacy, no longer painted by readers). The current format is OIM 2.0: see [CANONICAL_SPEC_2.md](CANONICAL_SPEC_2.md).
4
4
 
5
- **Contract version:** 1.36.5
5
+ **Contract version:** 1.36.7
6
6
  **Date:** 2026-11-02 (reviewed against `packages/core/src/schema.ts`; the source of truth is the schema, this document summarises it)
7
7
  **Status:** Normative / In force
8
8
  **License:** Apache-2.0
@@ -14,8 +14,6 @@
14
14
 
15
15
  The **`.oim`** format defines a multi-platform interactive image specification. The metadata layer (historically called `oimdata` or `oimdata.json`, injected into the `OIM_Data` chunk of the PNG container) uses a **strongly typed, serialisable canonical language**.
16
16
 
17
- > **Note on OVM (`.ovm`):** The interactive video format (`ovm.schema.json` and `@oim-media/player-ovm`) is currently a **reserved placeholder pending specification**. The normative specification below governs **OIM (`.oim`)**.
18
-
19
17
  ### Canonical Design Principles
20
18
 
21
19
  1. **Total independence from web engines (native platforms):**
@@ -6,7 +6,7 @@ SPDX-License-Identifier: Apache-2.0
6
6
  # OIM 2.0 Canonical Specification
7
7
 
8
8
  **Document version emitted by the reference writer:** `2.0.0` (`DOCUMENT_VERSION` in `@oim-media/core/v2`)
9
- **Contract release this text was checked against:** 1.36.5
9
+ **Contract release this text was checked against:** 1.36.7
10
10
  **Status:** Normative
11
11
  **License:** Apache-2.0
12
12
  **Authority:** Xue Studios LLC
@@ -776,7 +776,7 @@ A writer is checked by validating its documents against `schema/oim2.schema.json
776
776
 
777
777
  ## 11. Appendix D: what the schema allows and the reference painter does not draw
778
778
 
779
- Checked against the working tree that follows release 1.36.5. A reader that does not draw one of these is still
779
+ Checked against the working tree that follows release 1.36.7. A reader that does not draw one of these is still
780
780
  conforming to the schema; a writer SHOULD NOT rely on them being painted.
781
781
 
782
782
  - A gradient paint with `preset` and no `gradient`: the reference painter reads the preset only for an artistic
package/README.md CHANGED
@@ -9,7 +9,7 @@ BINARY_SPEC.md Binary layout of the PNG container, compression and the imag
9
9
  CANONICAL_SPEC_2.md Canonical specification of OIM 2.0 (the current format): container, document, security, signing.
10
10
  SPEC_2.md 2.0 rendering rules (box, strokes, text, opacity and blend).
11
11
  CANONICAL_SPEC.md Canonical specification of 1.x (legacy, no longer painted): metadata and the bytes a signature covers.
12
- schema/ oim.schema.json and ovm.schema.json: JSON Schema, generated from @oim-media/core.
12
+ schema/ oim.schema.json: JSON Schema for 1.x, generated from @oim-media/core.
13
13
  keys.json Public keys every player embeds (kid, jwk and key dates). Public parts only.
14
14
  marks-cases.json Known-answer cases for text marks, shared with the backend's validator tests.
15
15
  canonical-cases.json Known-answer case for the canonical form, checked by the TypeScript, Rust and Dart implementations.
@@ -49,10 +49,7 @@ that survives the language.
49
49
 
50
50
  ## Who is the authority today
51
51
 
52
- Today the source of truth is still `packages/core/src/schema.ts`: the JSON in
53
- `schema/` is **generated** from that Zod schema, and a test fails if someone
54
- edits the Zod without regenerating. This is deliberate — a generated contract
55
- cannot drift from its implementation, which is exactly the failure this closes.
52
+ Today the source of truth is `packages/core/src/v2/schema.ts` for Format 2.0 (and `packages/core/src/schema.ts` for legacy 1.x): the JSON in `schema/` is **generated** from those Zod schemas, and a test fails if someone edits the Zod without regenerating. This is deliberate — a generated contract cannot drift from its implementation, which is exactly the failure this closes.
56
53
 
57
54
  Other implementations now exist in this repository: the Rust crate and the
58
55
  Flutter SDK read the same files. They are held to the generated JSON Schema, the
@@ -308,362 +308,362 @@
308
308
  "shading": true,
309
309
  "layers": [
310
310
  {
311
- "dx": 52,
312
- "dy": 30,
311
+ "dx": 69.3,
312
+ "dy": 40,
313
313
  "color": "red",
314
314
  "opacity": 1
315
315
  },
316
316
  {
317
- "dx": 51.1,
318
- "dy": 29.5,
317
+ "dx": 68.1,
318
+ "dy": 39.3,
319
319
  "color": "red",
320
320
  "opacity": 1
321
321
  },
322
322
  {
323
- "dx": 50.2,
324
- "dy": 29,
323
+ "dx": 67,
324
+ "dy": 38.7,
325
325
  "color": "red",
326
326
  "opacity": 1
327
327
  },
328
328
  {
329
- "dx": 49.4,
330
- "dy": 28.5,
329
+ "dx": 65.8,
330
+ "dy": 38,
331
331
  "color": "red",
332
332
  "opacity": 1
333
333
  },
334
334
  {
335
- "dx": 48.5,
336
- "dy": 28,
335
+ "dx": 64.7,
336
+ "dy": 37.3,
337
337
  "color": "red",
338
338
  "opacity": 1
339
339
  },
340
340
  {
341
- "dx": 47.6,
342
- "dy": 27.5,
341
+ "dx": 63.5,
342
+ "dy": 36.7,
343
343
  "color": "red",
344
344
  "opacity": 1
345
345
  },
346
346
  {
347
- "dx": 46.8,
348
- "dy": 27,
347
+ "dx": 62.4,
348
+ "dy": 36,
349
349
  "color": "red",
350
350
  "opacity": 1
351
351
  },
352
352
  {
353
- "dx": 45.9,
354
- "dy": 26.5,
353
+ "dx": 61.2,
354
+ "dy": 35.3,
355
355
  "color": "red",
356
356
  "opacity": 1
357
357
  },
358
358
  {
359
- "dx": 45,
360
- "dy": 26,
359
+ "dx": 60,
360
+ "dy": 34.7,
361
361
  "color": "red",
362
362
  "opacity": 1
363
363
  },
364
364
  {
365
- "dx": 44.2,
366
- "dy": 25.5,
365
+ "dx": 58.9,
366
+ "dy": 34,
367
367
  "color": "red",
368
368
  "opacity": 1
369
369
  },
370
370
  {
371
- "dx": 43.3,
372
- "dy": 25,
371
+ "dx": 57.7,
372
+ "dy": 33.3,
373
373
  "color": "red",
374
374
  "opacity": 1
375
375
  },
376
376
  {
377
- "dx": 42.4,
378
- "dy": 24.5,
377
+ "dx": 56.6,
378
+ "dy": 32.7,
379
379
  "color": "red",
380
380
  "opacity": 1
381
381
  },
382
382
  {
383
- "dx": 41.6,
384
- "dy": 24,
383
+ "dx": 55.4,
384
+ "dy": 32,
385
385
  "color": "red",
386
386
  "opacity": 1
387
387
  },
388
388
  {
389
- "dx": 40.7,
390
- "dy": 23.5,
389
+ "dx": 54.3,
390
+ "dy": 31.3,
391
391
  "color": "red",
392
392
  "opacity": 1
393
393
  },
394
394
  {
395
- "dx": 39.8,
396
- "dy": 23,
395
+ "dx": 53.1,
396
+ "dy": 30.7,
397
397
  "color": "red",
398
398
  "opacity": 1
399
399
  },
400
400
  {
401
- "dx": 39,
402
- "dy": 22.5,
401
+ "dx": 52,
402
+ "dy": 30,
403
403
  "color": "red",
404
404
  "opacity": 1
405
405
  },
406
406
  {
407
- "dx": 38.1,
408
- "dy": 22,
407
+ "dx": 50.8,
408
+ "dy": 29.3,
409
409
  "color": "red",
410
410
  "opacity": 1
411
411
  },
412
412
  {
413
- "dx": 37.2,
414
- "dy": 21.5,
413
+ "dx": 49.7,
414
+ "dy": 28.7,
415
415
  "color": "red",
416
416
  "opacity": 1
417
417
  },
418
418
  {
419
- "dx": 36.4,
420
- "dy": 21,
419
+ "dx": 48.5,
420
+ "dy": 28,
421
421
  "color": "red",
422
422
  "opacity": 1
423
423
  },
424
424
  {
425
- "dx": 35.5,
426
- "dy": 20.5,
425
+ "dx": 47.3,
426
+ "dy": 27.3,
427
427
  "color": "red",
428
428
  "opacity": 1
429
429
  },
430
430
  {
431
- "dx": 34.6,
432
- "dy": 20,
431
+ "dx": 46.2,
432
+ "dy": 26.7,
433
433
  "color": "red",
434
434
  "opacity": 1
435
435
  },
436
436
  {
437
- "dx": 33.8,
438
- "dy": 19.5,
437
+ "dx": 45,
438
+ "dy": 26,
439
439
  "color": "red",
440
440
  "opacity": 1
441
441
  },
442
442
  {
443
- "dx": 32.9,
444
- "dy": 19,
443
+ "dx": 43.9,
444
+ "dy": 25.3,
445
445
  "color": "red",
446
446
  "opacity": 1
447
447
  },
448
448
  {
449
- "dx": 32,
450
- "dy": 18.5,
449
+ "dx": 42.7,
450
+ "dy": 24.7,
451
451
  "color": "red",
452
452
  "opacity": 1
453
453
  },
454
454
  {
455
- "dx": 31.2,
456
- "dy": 18,
455
+ "dx": 41.6,
456
+ "dy": 24,
457
457
  "color": "red",
458
458
  "opacity": 1
459
459
  },
460
460
  {
461
- "dx": 30.3,
462
- "dy": 17.5,
461
+ "dx": 40.4,
462
+ "dy": 23.3,
463
463
  "color": "red",
464
464
  "opacity": 1
465
465
  },
466
466
  {
467
- "dx": 29.4,
468
- "dy": 17,
467
+ "dx": 39.3,
468
+ "dy": 22.7,
469
469
  "color": "red",
470
470
  "opacity": 1
471
471
  },
472
472
  {
473
- "dx": 28.6,
474
- "dy": 16.5,
473
+ "dx": 38.1,
474
+ "dy": 22,
475
475
  "color": "red",
476
476
  "opacity": 1
477
477
  },
478
478
  {
479
- "dx": 27.7,
480
- "dy": 16,
479
+ "dx": 37,
480
+ "dy": 21.3,
481
481
  "color": "red",
482
482
  "opacity": 1
483
483
  },
484
484
  {
485
- "dx": 26.8,
486
- "dy": 15.5,
485
+ "dx": 35.8,
486
+ "dy": 20.7,
487
487
  "color": "red",
488
488
  "opacity": 1
489
489
  },
490
490
  {
491
- "dx": 26,
492
- "dy": 15,
491
+ "dx": 34.6,
492
+ "dy": 20,
493
493
  "color": "red",
494
494
  "opacity": 1
495
495
  },
496
496
  {
497
- "dx": 25.1,
498
- "dy": 14.5,
497
+ "dx": 33.5,
498
+ "dy": 19.3,
499
499
  "color": "red",
500
500
  "opacity": 1
501
501
  },
502
502
  {
503
- "dx": 24.2,
504
- "dy": 14,
503
+ "dx": 32.3,
504
+ "dy": 18.7,
505
505
  "color": "red",
506
506
  "opacity": 1
507
507
  },
508
508
  {
509
- "dx": 23.4,
510
- "dy": 13.5,
509
+ "dx": 31.2,
510
+ "dy": 18,
511
511
  "color": "red",
512
512
  "opacity": 1
513
513
  },
514
514
  {
515
- "dx": 22.5,
516
- "dy": 13,
515
+ "dx": 30,
516
+ "dy": 17.3,
517
517
  "color": "red",
518
518
  "opacity": 1
519
519
  },
520
520
  {
521
- "dx": 21.7,
522
- "dy": 12.5,
521
+ "dx": 28.9,
522
+ "dy": 16.7,
523
523
  "color": "red",
524
524
  "opacity": 1
525
525
  },
526
526
  {
527
- "dx": 20.8,
528
- "dy": 12,
527
+ "dx": 27.7,
528
+ "dy": 16,
529
529
  "color": "red",
530
530
  "opacity": 1
531
531
  },
532
532
  {
533
- "dx": 19.9,
534
- "dy": 11.5,
533
+ "dx": 26.6,
534
+ "dy": 15.3,
535
535
  "color": "red",
536
536
  "opacity": 1
537
537
  },
538
538
  {
539
- "dx": 19.1,
540
- "dy": 11,
539
+ "dx": 25.4,
540
+ "dy": 14.7,
541
541
  "color": "red",
542
542
  "opacity": 1
543
543
  },
544
544
  {
545
- "dx": 18.2,
546
- "dy": 10.5,
545
+ "dx": 24.2,
546
+ "dy": 14,
547
547
  "color": "red",
548
548
  "opacity": 1
549
549
  },
550
550
  {
551
- "dx": 17.3,
552
- "dy": 10,
551
+ "dx": 23.1,
552
+ "dy": 13.3,
553
553
  "color": "red",
554
554
  "opacity": 1
555
555
  },
556
556
  {
557
- "dx": 16.5,
558
- "dy": 9.5,
557
+ "dx": 21.9,
558
+ "dy": 12.7,
559
559
  "color": "red",
560
560
  "opacity": 1
561
561
  },
562
562
  {
563
- "dx": 15.6,
564
- "dy": 9,
563
+ "dx": 20.8,
564
+ "dy": 12,
565
565
  "color": "red",
566
566
  "opacity": 1
567
567
  },
568
568
  {
569
- "dx": 14.7,
570
- "dy": 8.5,
569
+ "dx": 19.6,
570
+ "dy": 11.3,
571
571
  "color": "red",
572
572
  "opacity": 1
573
573
  },
574
574
  {
575
- "dx": 13.9,
576
- "dy": 8,
575
+ "dx": 18.5,
576
+ "dy": 10.7,
577
577
  "color": "red",
578
578
  "opacity": 1
579
579
  },
580
580
  {
581
- "dx": 13,
582
- "dy": 7.5,
581
+ "dx": 17.3,
582
+ "dy": 10,
583
583
  "color": "red",
584
584
  "opacity": 1
585
585
  },
586
586
  {
587
- "dx": 12.1,
588
- "dy": 7,
587
+ "dx": 16.2,
588
+ "dy": 9.3,
589
589
  "color": "red",
590
590
  "opacity": 1
591
591
  },
592
592
  {
593
- "dx": 11.3,
594
- "dy": 6.5,
593
+ "dx": 15,
594
+ "dy": 8.7,
595
595
  "color": "red",
596
596
  "opacity": 1
597
597
  },
598
598
  {
599
- "dx": 10.4,
600
- "dy": 6,
599
+ "dx": 13.9,
600
+ "dy": 8,
601
601
  "color": "red",
602
602
  "opacity": 1
603
603
  },
604
604
  {
605
- "dx": 9.5,
606
- "dy": 5.5,
605
+ "dx": 12.7,
606
+ "dy": 7.3,
607
607
  "color": "red",
608
608
  "opacity": 1
609
609
  },
610
610
  {
611
- "dx": 8.7,
612
- "dy": 5,
611
+ "dx": 11.5,
612
+ "dy": 6.7,
613
613
  "color": "red",
614
614
  "opacity": 1
615
615
  },
616
616
  {
617
- "dx": 7.8,
618
- "dy": 4.5,
617
+ "dx": 10.4,
618
+ "dy": 6,
619
619
  "color": "red",
620
620
  "opacity": 1
621
621
  },
622
622
  {
623
- "dx": 6.9,
624
- "dy": 4,
623
+ "dx": 9.2,
624
+ "dy": 5.3,
625
625
  "color": "red",
626
626
  "opacity": 1
627
627
  },
628
628
  {
629
- "dx": 6.1,
630
- "dy": 3.5,
629
+ "dx": 8.1,
630
+ "dy": 4.7,
631
631
  "color": "red",
632
632
  "opacity": 1
633
633
  },
634
634
  {
635
- "dx": 5.2,
636
- "dy": 3,
635
+ "dx": 6.9,
636
+ "dy": 4,
637
637
  "color": "red",
638
638
  "opacity": 1
639
639
  },
640
640
  {
641
- "dx": 4.3,
642
- "dy": 2.5,
641
+ "dx": 5.8,
642
+ "dy": 3.3,
643
643
  "color": "red",
644
644
  "opacity": 1
645
645
  },
646
646
  {
647
- "dx": 3.5,
648
- "dy": 2,
647
+ "dx": 4.6,
648
+ "dy": 2.7,
649
649
  "color": "red",
650
650
  "opacity": 1
651
651
  },
652
652
  {
653
- "dx": 2.6,
654
- "dy": 1.5,
653
+ "dx": 3.5,
654
+ "dy": 2,
655
655
  "color": "red",
656
656
  "opacity": 1
657
657
  },
658
658
  {
659
- "dx": 1.7,
660
- "dy": 1,
659
+ "dx": 2.3,
660
+ "dy": 1.3,
661
661
  "color": "red",
662
662
  "opacity": 1
663
663
  },
664
664
  {
665
- "dx": 0.9,
666
- "dy": 0.5,
665
+ "dx": 1.2,
666
+ "dy": 0.7,
667
667
  "color": "red",
668
668
  "opacity": 1
669
669
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oim-media/spec",
3
- "version": "1.36.5",
3
+ "version": "1.36.7",
4
4
  "description": "OIM format contract: JSON Schema, normative specification and conformance vectors that every OIM player must pass.",
5
5
  "keywords": [
6
6
  "oim",
@@ -43,7 +43,7 @@
43
43
  "directory": "packages/spec"
44
44
  },
45
45
  "devDependencies": {
46
- "playwright": "1.65.0"
46
+ "playwright": "1.65.1"
47
47
  },
48
48
  "scripts": {
49
49
  "parity": "node tools/parity.mjs",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://oim.media/spec/1.36.5/oim.schema.json",
3
+ "$id": "https://oim.media/spec/1.36.7/oim.schema.json",
4
4
  "title": "OIM document metadata",
5
- "specVersion": "1.36.5",
5
+ "specVersion": "1.36.7",
6
6
  "type": "object",
7
7
  "properties": {
8
8
  "description": {
@@ -0,0 +1,13 @@
1
+ {
2
+ "android": {
3
+ "artistic-text": "Android SDK paints artistic text without its gradient fill and with another extrusion (0.1.0).",
4
+ "generative-fill": "Android SDK does not paint the generative fill yet (0.1.0)."
5
+ },
6
+ "flutter": {
7
+ "duotone": "Flutter SDK does not paint the duotone backdrop yet (2.0 parity).",
8
+ "filter-shape": "Flutter SDK does not clip a filter to its shape yet (2.0 parity).",
9
+ "generative-fill": "Flutter SDK does not paint the generative fill yet (2.0 parity).",
10
+ "mask-frame-fill": "Flutter SDK does not paint the mask frame fill yet (2.0 parity).",
11
+ "text-decorations": "Flutter SDK does not paint text marks, highlight, drop cap or decoration yet (2.0 parity)."
12
+ }
13
+ }