假設您指的是 figures 資料夾而不是 shared 資料夾,JPG 檔案是在插入過程中作為一部分創建的,因此沒有辦法觸發這些檔案的創建。不過,Python 應該能夠創建您圖片的 JPG 版本。您可以在腳本中將檔案創建在 figures 資料夾內——名稱只需完全匹配(但使用 .jpg 副檔名)。為了與 Paratext 的行為類似,圖片應縮放至最大 400x400 像素,但這並非強制要求——這只是為了在 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