假设您指的是 figures 文件夹而不是 shared 文件夹,JPG 文件是在插入过程中作为一部分创建的,因此没有方法可以触发这些文件的创建。不过,Python 应该能够创建您图像的 JPG 版本。您可以在脚本中将这些文件创建在 figures 文件夹内——名称只需完全匹配(但扩展名为 .jpg)。图像应缩放至最大 400x400 像素,以类似于 Paratext 的处理方式,但这并非必需——只是为了在 S/R 中保持较小的文件大小。
Paratext 应在您下次 S/R 时自动将图像添加到项目中。
Assuming you mean the figures folder instead of the shared folder, the JPG files get created as part of the insertion process so there isn't a way to trigger the creation of those files. However, Python should be able to create JPG versions of your images. You can create the files inside the figures folder as part of your script - the name just has to exactly match (but with the .jpg extension). The images should be scaled to a max of 400x400 pixels to be similar to what Paratext does, but this isn't required - it's just to keep the size smaller for S/R.
Paratext should automatically add the images to the project during your next S/R.
机器翻译自 English