0 votes
When we insert a figure in Paratext, it automatically creates a .jpg version of the image and puts it in the shared folder so other team members get it via send/receive. I am changing a large number of our figures by replacing one figure with another using a Python script. I am also inserting some new pictures using the same method. This is faster when I have to make a lot of changes all at once, but I'm not triggering the mechanism in Paratext that creates that.jpg file for sharing. I wonder if there's a way to force it to do that.
Thanks for any help you can give me on this.
John Nystrom
Paratext by (310 points)

1 Answer

0 votes

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.

by [Expert]
(16.6k points)
This is included now in our script. Thanks!
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
Accept the one whose faith is weak, without quarreling over disputable matters.
Romans 14:1
3,032 questions
5,987 answers
5,652 comments
2,019 users