Add optimized pictures

Included is a script with the optimization commands I ran. Values are
pretty arbitrary; I didn't do much testing after validating that
everything looked good enough.

Fixes #1
Fixes #3
This commit is contained in:
Chandler Swift 2024-12-22 21:43:01 -06:00
parent df16344bae
commit 967d49cfbc
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F
75 changed files with 81 additions and 34 deletions

102
data.json
View file

@ -8,7 +8,8 @@
"text": "<p>Käthe's family invited us to join them for a trip to Ireland for 10 days this summer.</p>"
},
"media": {
"url": "pictures/all-in-front-of-cormacs-chapel-cashel.jpg",
"url": "pictures/all-in-front-of-cormacs-chapel-cashel-sm.jpg",
"link": "pictures/all-in-front-of-cormacs-chapel-cashel.jpg",
"credit": "",
"caption": "Standing in front of <a href='https://en.wikipedia.org/wiki/Rock_of_Cashel#Cormac's_Chapel'>Cormac's Chapel</a>. Left: Ted & Sharon; Front: Greg & Natalie; Right: Eloise & Don"
}
@ -23,7 +24,8 @@
"lon": -6.2416
},
"media": {
"url": "pictures/kathe-preflight-stretch.jpg",
"url": "pictures/kathe-preflight-stretch-sm.jpg",
"link": "pictures/kathe-preflight-stretch.jpg",
"caption": "Käthe, doing her pre-flight stretching"
}
},
@ -52,7 +54,8 @@
"lon": -6.4982
},
"media": {
"url": "pictures/rossnaree-peacock.jpg",
"url": "pictures/rossnaree-peacock-sm.jpg",
"link": "pictures/rossnaree-peacock.jpg",
"caption": "Peacock at Rossnaree House"
}
},
@ -66,7 +69,8 @@
"lon": -6.4914
},
"media": {
"url": "pictures/knowth.jpg",
"url": "pictures/knowth-sm.jpg",
"link": "pictures/knowth.jpg",
"caption": "Foreground: an old foundation; Mid: Ted and Greg departing; background: passage tombs"
}
},
@ -80,7 +84,8 @@
"lon": -6.4755
},
"media": {
"url": "pictures/newgrange.jpg",
"url": "pictures/newgrange-sm.jpg",
"link": "pictures/newgrange.jpg",
"caption": "Käthe in front of the Newgrange tomb. We got to go inside! No pictures allowed, but you'll have to take our word for it that it was pretty neat."
}
},
@ -94,7 +99,8 @@
"lon": -6.6121
},
"media": {
"url": "pictures/stone-of-destiny.jpg",
"url": "pictures/stone-of-destiny-sm.jpg",
"link": "pictures/stone-of-destiny.jpg",
"caption": "High winds indeed! Stone of Destiny in background. From left: Sharon, Greg, Don, Elouise, Käthe. "
}
},
@ -108,7 +114,8 @@
"lon": -6.5421
},
"media": {
"url": "pictures/ted-tries-pot.png"
"url": "pictures/ted-tries-pot-sm.jpg",
"link": "pictures/ted-tries-pot.jpg"
}
},
{
@ -121,7 +128,8 @@
"lon": -7.9869
},
"media": {
"url": "pictures/clonmacnoise.jpg",
"url": "pictures/clonmacnoise-sm.jpg",
"link": "pictures/clonmacnoise.jpg",
"caption": "Käthe and Chandler standing by O'Rourke's Tower, with Temple Connor (an active church of the Church of Ireland!) in the background"
}
},
@ -135,7 +143,8 @@
"lon": -9.1400
},
"media": {
"url": "pictures/poulnabrone-dolmen.jpg",
"url": "pictures/poulnabrone-dolmen-sm.jpg",
"link": "pictures/poulnabrone-dolmen.jpg",
"caption": "Ted, Käthe, Chandler, and Greg as seen through the tomb"
}
},
@ -149,7 +158,8 @@
"lon": -9.3863
},
"media": {
"url": "pictures/dalys-house.jpg",
"url": "pictures/dalys-house-sm.jpg",
"link": "pictures/dalys-house.jpg",
"caption": "Käthe was delighted to be able to see cows from her bedroom!"
}
},
@ -190,7 +200,8 @@
"lon": -9.1153
},
"media": {
"url": "pictures/roads.jpg",
"url": "pictures/roads-sm.jpg",
"link": "pictures/roads.jpg",
"caption": "Looking down over a winding narrow stretch of <a href='https://www.openstreetmap.org/way/333093293#map=18/53.036517/-9.118304'>L1042</a> on our way to the Perfumery"
}
},
@ -204,7 +215,8 @@
"lon": -9.4308
},
"media": {
"url": "pictures/cliffs-of-moher.png",
"url": "pictures/cliffs-of-moher-sm.jpg",
"link": "pictures/cliffs-of-moher.jpg",
"caption": "Looking South along the coast from the Cliffs of Moher Visitor Center"
}
},
@ -218,7 +230,8 @@
"lon": -9.4132
},
"media": {
"url": "pictures/cliffs-of-moher-2.jpg",
"url": "pictures/cliffs-of-moher-2-sm.jpg",
"link": "pictures/cliffs-of-moher-2.jpg",
"caption": "Käthe and Sharon, partway back on the hike to Doolin"
}
},
@ -232,7 +245,8 @@
"lon": -9.4095
},
"media": {
"url": "pictures/cliffs-of-moher-3.jpg",
"url": "pictures/cliffs-of-moher-3-sm.jpg",
"link": "pictures/cliffs-of-moher-3.jpg",
"caption": "Käthe and Sharon, callously disregarding the sign's ominous warning"
}
},
@ -246,7 +260,8 @@
"lon": -9.3863
},
"media": {
"url": "pictures/breakfast-at-dalys-house.png",
"url": "pictures/breakfast-at-dalys-house-sm.jpg",
"link": "pictures/breakfast-at-dalys-house.jpg",
"caption": "From left: Sharon, Don, Elouise, Susan (our hostess), Natalie, Greg, Chandler, Käthe"
}
},
@ -274,7 +289,8 @@
"lon": -9.6232
},
"media": {
"url": "pictures/killarney-falconry-2.png",
"url": "pictures/killarney-falconry-2-sm.jpg",
"link": "pictures/killarney-falconry-2.jpg",
"caption": "Chandler holds Helen the Great Grey Owl; Greg, in the background, holds The Professor, a White-Faced Scops Owl. Natalie, on the far right, is holding Sam the barn owl slightly out of frame."
}
},
@ -288,7 +304,8 @@
"lon": -10.3657
},
"media": {
"url": "pictures/skellig-michael.jpg",
"url": "pictures/skellig-michael-sm.jpg",
"link": "pictures/skellig-michael.jpg",
"caption": "On the ~11 mile, hour-long boat ride out to Skellig Michael"
}
},
@ -302,7 +319,8 @@
"lon": -10.539075
},
"media": {
"url": "pictures/skellig-michael-2.jpg",
"url": "pictures/skellig-michael-2-sm.jpg",
"link": "pictures/skellig-michael-2.jpg",
"caption": "Chandler, Käthe, Ted, and Sharon partway up the side of Skellig Michael"
}
},
@ -316,7 +334,8 @@
"lon": -10.5393
},
"media": {
"url": "pictures/skellig-michael-3.png",
"url": "pictures/skellig-michael-3-sm.jpg",
"link": "pictures/skellig-michael-3.jpg",
"caption": "Chandler hiking back down from the top of the island"
}
},
@ -330,7 +349,8 @@
"lon": -10.4249
},
"media": {
"url": "pictures/bray-tower.png",
"url": "pictures/bray-tower-sm.jpg",
"link": "pictures/bray-tower.jpg",
"caption": "The view from the south-ish window of Bray Tower"
}
},
@ -344,7 +364,8 @@
"lon": -10.4234
},
"media": {
"url": "pictures/from-bray-tower.png",
"url": "pictures/from-bray-tower-sm.jpg",
"link": "pictures/from-bray-tower.jpg",
"caption": "A picture Sharon took of Skellig Michael (right) and Little Skellig (left), as viewed from just southeast of Bray Tower"
}
},
@ -358,7 +379,8 @@
"lon": -10.4234
},
"media": {
"url": "pictures/from-bray-tower-2.jpg",
"url": "pictures/from-bray-tower-2-sm.jpg",
"link": "pictures/from-bray-tower-2.jpg",
"caption": "A picture by Ted of Sharon taking the previous picture"
}
},
@ -372,7 +394,8 @@
"lon": -10.4238
},
"media": {
"url": "pictures/from-bray-tower-3.png",
"url": "pictures/from-bray-tower-3-sm.jpg",
"link": "pictures/from-bray-tower-3.jpg",
"caption": "A picture by Käthe of Ted taking the previous picture"
}
},
@ -386,7 +409,8 @@
"lon": -10.4243
},
"media": {
"url": "pictures/from-bray-tower-4.jpg",
"url": "pictures/from-bray-tower-4-sm.jpg",
"link": "pictures/from-bray-tower-4.jpg",
"caption": "A picture by Chandler of Käthe taking the previous picture"
}
},
@ -400,7 +424,8 @@
"lon": -9.5508
},
"media": {
"url": "pictures/many-katherines.jpg",
"url": "pictures/many-katherines-sm.jpg",
"link": "pictures/many-katherines.jpg",
"caption": "From left: Käthe, Käthe, Käthe, Käthe, Käthe, Käthe, Käthe, and Käthe"
}
},
@ -414,7 +439,8 @@
"lon": -8.5831
},
"media": {
"url": "pictures/doneraile-court.png",
"url": "pictures/doneraile-court-sm.jpg",
"link": "pictures/doneraile-court.jpg",
"caption": "Doneraile Court as viewed from the northeast; photo taken by Sharon."
}
},
@ -428,7 +454,8 @@
"lon": -7.8893
},
"media": {
"url": "pictures/cashel.png",
"url": "pictures/cashel-sm.jpg",
"link": "pictures/cashel.jpg",
"caption": "Cashel Palace, as seen from the gardens in the back"
}
},
@ -442,7 +469,8 @@
"lon": -7.8907
},
"media": {
"url": "pictures/rock-of-cashel.png",
"url": "pictures/rock-of-cashel-sm.jpg",
"link": "pictures/rock-of-cashel.jpg",
"caption": "The Cathedral as seen from the northeast"
}
},
@ -484,7 +512,8 @@
"lon": -6.2597
},
"media": {
"url": "pictures/xian-street-food.jpg",
"url": "pictures/xian-street-food-sm.jpg",
"link": "pictures/xian-street-food.jpg",
"caption": "Chandler and Greg enjoying an order of Pad Thai"
}
},
@ -498,7 +527,8 @@
"lon": -6.25649
},
"media": {
"url": "pictures/trinity-college-old-library.png",
"url": "pictures/trinity-college-old-library-sm.jpg",
"link": "pictures/trinity-college-old-library.jpg",
"caption": "Chandler reconnecting with his ancestry (\"D. SWIFT\" bust in background)"
}
},
@ -514,7 +544,8 @@
"lon": -6.2603
},
"media": {
"url": "pictures/dublin.jpg",
"url": "pictures/dublin-sm.jpg",
"link": "pictures/dublin.jpg",
"caption": "Back: Käthe, Sharon, Chandler; Front: Natalie, Greg"
}
},
@ -528,7 +559,8 @@
"lon": -6.27404
},
"media": {
"url": "pictures/st-audoens-church.png",
"url": "pictures/st-audoens-church-sm.jpg",
"link": "pictures/st-audoens-church.jpg",
"caption": "Chandler by the 1885 Forster and Andrews pipe organ"
}
},
@ -542,7 +574,8 @@
"lon": -6.2585
},
"media": {
"url": "pictures/st-stephens-green.png",
"url": "pictures/st-stephens-green-sm.jpg",
"link": "pictures/st-stephens-green.jpg",
"caption": "Käthe and Chandler greeting the swans in St. Stephen's Green, Dublin"
}
},
@ -556,7 +589,8 @@
"lon": -6.2558
},
"media": {
"url": "pictures/back-to-the-airport.png",
"url": "pictures/back-to-the-airport-sm.jpg",
"link": "pictures/back-to-the-airport.jpg",
"caption": "From left: Natalie, Ted, Greg, and Käthe. Chandler and Sharon were crammed in the third row with wheelchair parts, taking the picture"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

BIN
pictures/bray-tower-sm.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

BIN
pictures/bray-tower.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 MiB

BIN
pictures/cashel-sm.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

BIN
pictures/cashel.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

BIN
pictures/clonmacnoise.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 695 KiB

BIN
pictures/dalys-house-sm.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

BIN
pictures/dalys-house.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 MiB

Binary file not shown.

BIN
pictures/dublin-sm.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 KiB

BIN
pictures/dublin.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 587 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6 MiB

Binary file not shown.

BIN
pictures/knowth-sm.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

BIN
pictures/knowth.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 616 KiB

BIN
pictures/newgrange-sm.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

BIN
pictures/newgrange.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 MiB

13
pictures/optimize.sh Executable file
View file

@ -0,0 +1,13 @@
#!/usr/bin/env nix-shell
#! nix-shell -i bash --pure
#! nix-shell -p imagemagick
for picture in original/*png; do
magick $picture -resize 800x800 -quality 80 $(basename $picture .png)-sm.jpg
magick $picture -quality 90 $(basename $picture .png).jpg
done
for picture in original/*jpg; do
magick $picture -resize 800x800 -quality 80 $(basename $picture .jpg)-sm.jpg
cp $picture $(basename $picture)
done

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB

BIN
pictures/roads-sm.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

BIN
pictures/roads.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

BIN
pictures/rock-of-cashel.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 MiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

BIN
pictures/ted-tries-pot.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 MiB