When I ran into a similar problem with an Inform 7 game (my cover art was all right but game images were absent) I found blorbtool.py to be better than ifsitegen.py.
You really need to use the blorbtool script, otherwise each time you release in I7 you’re going to lose the images. Or if you re-order some source text then the images might get numbered differently and then you’ll be showing the wrong image.
The script is fairly straightforward to run; after each time you click Release in I7, also run a script that executes:
python blorbtool.py "Your Story.materials/Release/Your Story.gblorb" giload "Your Story.materials/Release/interpreter" interpreter
The…
Hm. The script was more for turning existing Inform 6 game files into a web site, without using all of I7.
It’s hard to replicate everything I7 does without parsing the I7 source code. The answer here may be to run ifsitegen.py once and copy the necessary .js files over into the directory that I7 builds. Or go back to the older blorbtool.py solution that’s on the wiki page… I apologize if this has led you down a garden path!
Just to sum this up, here’s what I did in the end. What I needed wasn’t really an “image gallery” (as originally mentioned) or a direct way of displaying a PDF file, but a means of displaying one image at a time and allowing the player or game to choose which one.
Converted the six-page PDF file to six PNG images using PDFill PDF Tools .
Reduced them in size to 608x860, using GIMP , the same height as the map in Counterfeit Monkey .
Used Simple Graphical Window by Emily Short to display one image…
1 Like