forked from 1b-agent/opencadstudio-upstream
Complete Ole2Frame: embed a picture file from a script
EmbedPicture builds the frame with OCS's own EmbeddedImage and build_embedded_ole, so the opaque storage is never scripted. PNG, JPEG and BMP are stored as read and other formats are re-encoded as PNG. The lifecycle test now creates through Python; a new test covers formats, aspect, origin, layer and refusals. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
942222c381
commit
5e6a830782
8 files changed
+148
-7
No files matched your search
@@ -789,7 +789,7 @@
|
||||
},
|
||||
"Ole2Frame": {
|
||||
"update_only": true,
|
||||
"update_only_message": "Ole2Frame cannot be created from a script: its embedded object storage is opaque; existing frames can be moved, resized and aspect-locked, and the stored object is preserved untouched",
|
||||
"update_only_message": "create an Ole2Frame with doc.embed_picture(path, origin, width); existing frames can be moved, resized and aspect-locked, and the stored object is preserved untouched",
|
||||
"fields": {
|
||||
"storage": {
|
||||
"exclude": true,
|
||||
|
||||
Reference in new issue
Block a user