Files
pdfcraft/crates/edit
HiteshandClaude Opus 5.5 6b9785eb00 fix(edit): resizing an image under a shared clip scales its own clip too (#4639)
Report generators draw each picture as `q re W n cm Do Q` inside a clip the section shares with
its text. `image_transform_scope` only accepted a scope that contained every active clip, which
none does there, so it fell back to transforming the `Do` alone: the picture grew, but its own
clip stayed at the old size and the enlarged picture showed only through its old box.

When no scope contains every clip, the outermost scope holding only the image is used: it holds
all of the image's private clips, which now move with it, while the outer clip, shared with
other content, stays where it is. A clip shared with a caption inside the same scope still stays
fixed (`cropped_image_resizing_moves_private_clips_and_keeps_shared_ones`). Crop uses the same
scope, so cropping such a picture replaces its own clip instead of nesting a second one.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 10:00:18 -04:00
..