Half-size images are difficult to drop consistently. I find some out of order but suspect there are more.
See Rocks Adventure
We find the order we added items to the Story.
curl ... | jq -r '.journal[] |select(.type=="add" and has("attribution")) |.id'
Then compare that to the order present in the Story.
curl ... | jq -r '.story[] |select(.type=="image") |.id'
This seems to show three out of order. Now what?
http://photos.ward.dojo.fed.wiki/assets/pages/photo-challenge-automation/rocks/diff.txt HEIGHT 250
pages/photo-challenge-automation/rocks
.
I showed this to Paul. We spent some time trying to decode the diff which remained confusing. Then he says, wait, just open a second copy of that page and shift-hover through the Journal to see where each image ended up. That works. Surprise and delight.
Tip to self: next time you try this, double check order as you add images and fix out-of-order items as you go.
Next problem: half-size images remain hard to reorder. Each attempt to make it better made it worse. Fix was to write a script that made the images full-size. github ![]()
for (const item of page.story) { if (item.type == 'image') { item.size = size } }
I returned to my desktop folder of images and showed them as icons, enlarged for legibility. This made reordering quick work. When finished, I used the same script to make them half-size again.
Aside: I am now more suspicious that my early decision to make images half-width was both gratuitous and a mistake. It clearly violates the principle: Simple Sequence.
> Simple Sequence. Constrain items of a story, actions of a journal, and panels of a lineup in a flat linear order using only links for additional structure. This ensures that reorganizations are easily interpreted.