Best way to keep reference images portable in shared worksheets?

Best way to keep reference images portable in shared worksheets? - Embedding or attaching externally generated diagrams in SMath files - Сообщения

#1 Опубликовано: 14.07.2026 10:05:41
ChatGPT Image

ChatGPT Image

0 сообщений из 1 понравились пользователям.

Группа: User

I am preparing SMath worksheets that include externally generated reference diagrams. Some draft visuals come from a ChatGPT Image Generator before I add dimensions and calculation notes in SMath.

What is the recommended way to keep these images portable when sharing an .sm file? Does inserting a bitmap embed it in the worksheet, or should the original PNG/JPG also be attached? I want recipients to see the diagrams without relying on a local file path.
ChatGPT Image — https://www.chatgptimage.app
#2 Опубликовано: 14.07.2026 19:31:55
overlord

overlord

598 сообщений из 1 379 понравились пользователям.

Группа: Moderator

Best and fastest way is to embed pictures in to smath file.
But this method will make your file very big depending on pictures.
Another way is to use DocumentDirectory() function.
Keeping your pictures out of smath file and relying on dynamic paths is available.
See the example below

Regards

2026-07-14_22-31.png
Отредактировано 14.07.2026 19:32:41
1 пользователям понравился этот пост
Alvaro 15.07.2026 11:15:52
#3 Опубликовано: 22.07.2026 21:44:04
Martin Kraska

Martin Kraska

1 353 сообщений из 2 265 понравились пользователям.

Группа: Moderator

If the image is static, then just paste it to the canvas and resize as required.

If the image may be externally modified, the way shown above is convenient.

If you want to edit the image in paint or any other editor, then you might use the image region as for external files, while keeping the placeholder empty. Then you can set the file format in the context menu and launch an editor.
In my Introduction to SMath Studio I recommend this for quick sketches.

https://doi.org/10.25933/opus4-3370

The benefit is that it is embedded in the worksheet (no external file needed) but still editable.
Also note that it is convienient to annotate sketches using formula regions on top of the image.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
  • Новые сообщения
  • Нет новых сообщений