feat: resize and describe stored pictures through the page model
A picture paragraph in the model can change its layout width and height,
the user-set flag and its alternative text; the writer stores exactly what
OneNote 2010 was observed to store when it resized a Rust-written picture
through the COM API (corpus/picture-edit/native-resize, authored by
tools/native/picture-edit.ps1): the layout size and user flag on the picture
object, with the intrinsic picture size untouched. Clearing the size or the
description removes the properties, so a reset page equals the original.
The payload, intrinsic size, background state and position stay fixed.
corpus/picture-edit now holds three captures: inserted (the Rust-inserted
picture cold read), native-resize (OneNote editing that picture, kept as a
reader fixture for a Rust picture rewritten natively with its DPAPI blob and
hash) and resized (a Rust resize of the native picture cold read with its
size and description). tools/test_picture_edit.py checks all three.
Assisted-by: claude-fable-5.1
d0ec66f9b4clover caruso committed on 9/13/2026, 12:00:32 AMparentcb4842d