Commit graph

1255 commits

Author SHA1 Message Date
Alex Cabal
875aeded60 Update wanted ebooks list 2022-11-01 13:32:51 -05:00
Alex Cabal
1a42de9a21 Update wanted ebooks list 2022-10-26 16:21:00 -05:00
Alex Cabal
460a8c4b7b Update wanted ebooks list 2022-10-18 09:27:21 -05:00
Alex Cabal
58abfc50d7 Tweak wording in author feeds button 2022-10-17 15:32:31 -05:00
Alex Cabal
1cefb7a2a1 Tweak wording on login page 2022-10-17 12:10:46 -05:00
Emma Sweeney
3d9660eabf
Add works to wanted ebooks list 2022-10-12 03:34:38 -04:00
Alex Cabal
456cf09516 Update wanted ebooks list 2022-10-11 16:39:56 -05:00
Alex Cabal
05a1121c84 Update wanted ebooks list 2022-10-11 10:50:42 -05:00
Anthony J. Bentley
8294e4be4a Update wanted ebooks list: Zuñi Folk Tales by Frank Hamilton Cushing 2022-10-10 09:53:59 -05:00
Alex Cabal
f8fabfb7d5 Update wanted ebooks list 2022-10-08 18:31:13 -05:00
Alex Cabal
a847681436 Update wanted ebooks list 2022-10-04 12:42:53 -05:00
Alex Cabal
308dd294b3 Allow italics in poll items 2022-10-01 16:58:43 -05:00
Alex Cabal
5e9dee2e75 Update wanted ebooks list 2022-10-01 16:46:42 -05:00
Alex Cabal
578a4f9b34 Tweak poll wording 2022-10-01 16:46:39 -05:00
Robin Whittleton
8499cfeaad Make sure that headers scrolled in view on mobile
Currently, when clicking on a ToC link in a single page web version, the title for that section is hidden under the fixed banner. We can use `scroll-margin-top` to add a little additional scroll amount to scroll the header into view. `3em` matches the current top margin of `3em` on headings and hgroups.
2022-10-01 12:34:22 -05:00
Alex Cabal
262ad7cfc3 Tweak donate page wording 2022-09-27 13:54:40 -05:00
Alex Cabal
e787715fbf Update wanted ebooks list 2022-09-27 10:02:42 -05:00
Alex Cabal
733b52c581 Don't serve Safari XHTML because of a bug in <picture> elements causing multiple images to be downloaded 2022-09-26 20:18:04 -05:00
Alex Cabal
f1352ec215 Don't output OG header data for 404 pages 2022-09-23 13:57:52 -05:00
Alex Cabal
1be895212c Update wanted ebooks list 2022-09-23 09:59:52 -05:00
Alex Cabal
7c9ee022ec Update wanted ebooks list 2022-09-21 17:13:57 -05:00
Joshua Lund
f2d5783596 Fix a small typo in step 14 of the step-by-step guide. 2022-09-21 17:13:42 -05:00
Alex Cabal
6b5c4d8975 Add --quiet option when calling cavif 2022-09-19 10:39:33 -05:00
Alex Cabal
ca4d86c3e7 Update cavif binary to one linked to Ubuntu 18.04 libs 2022-09-19 10:39:20 -05:00
Robin Whittleton
6b3863ff18 Add cavif LICENSE file as required 2022-09-18 22:08:19 +02:00
Robin Whittleton
71b675331a Fix AVIF images in iOS16 (and 8+ times speedup of AVIF generation)
iOS16 upholds AVIF standards more strictly than other renderers, which means that the current AVIF images on SE are broken. A fix for generation bug has been added to go-avif (https://github.com/Kagami/go-avif/pull/17) but we can do better.

This PR switches out the AVIF generation to cavif (https://github.com/kornelski/cavif-rs) which not only doesn’t suffer from the iOS16 but drops generation time by more than 8 times. For example, here’s a set of three timed runs in both go-avif and cavif on the title card of https://standardebooks.org/ebooks/jonathan-dymond/an-inquiry-into-the-accordancy-of-war-with-the-principles-of-christianity:

```
root@f58fb0beac90:/standardebooks.org/web/scripts# time ./go-avif -e "illustration.jpg" -o "illustration-go-1.avif" --best

real	0m31.191s
user	1m39.113s
sys	0m1.662s
root@f58fb0beac90:/standardebooks.org/web/scripts# time ./go-avif -e "illustration.jpg" -o "illustration-go-2.avif" --best

real	0m33.097s
user	1m49.846s
sys	0m0.831s
root@f58fb0beac90:/standardebooks.org/web/scripts# time ./go-avif -e "illustration.jpg" -o "illustration-go-3.avif" --best

real	0m36.963s
user	2m4.235s
sys	0m0.711s

root@f58fb0beac90:/standardebooks.org/web/scripts# time ./cavif --quality 50 "illustration.jpg" -o "illustration-cavif-1.avif"
illustration-cavif-1.avif: 98KB (96840B color, 0B alpha, 242B HEIF)

real	0m4.017s
user	0m11.600s
sys	0m0.051s
root@f58fb0beac90:/standardebooks.org/web/scripts# time ./cavif --quality 50 "illustration.jpg" -o "illustration-cavif-2.avif"
illustration-cavif-2.avif: 98KB (96840B color, 0B alpha, 242B HEIF)

real	0m4.083s
user	0m11.857s
sys	0m0.091s
root@f58fb0beac90:/standardebooks.org/web/scripts# time ./cavif --quality 50 "illustration.jpg" -o "illustration-cavif-3.avif"
illustration-cavif-3.avif: 98KB (96840B color, 0B alpha, 242B HEIF)

real	0m4.237s
user	0m12.339s
sys	0m0.093s
```

The executable has been generated via cargo, and has the following qualities:

```
root@f58fb0beac90:/standardebooks.org/web/scripts# file cavif
cavif: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=f972071996c58b7a855d04e4c5804f4a3d94f575, for GNU/Linux 3.2.0, with debug_info, not stripped
```

I’m not sure how cavif’s quality 50 matches go-avif’s best flag, but they produce similar file sizes and similar visual quality.

There is a slight different in apparent colour space. If this is an issue there are tweaks, but according to the documentation it makes files larger so should be avoided. Given that the titlecards will matches the covers I see no reason to go down that path.
2022-09-18 22:01:26 +02:00
Alex Cabal
5309b939ea Update wanted ebooks list 2022-09-10 11:07:17 -05:00
Alex Cabal
ecaa3f0699 Add Weijia Cheng to masthead 2022-09-08 16:31:43 -05:00
Alex Cabal
048949f21f Update wanted ebooks list 2022-09-08 16:24:18 -05:00
Alex Cabal
e3889f2824 Update wanted ebooks list 2022-09-06 15:55:40 -05:00
Alex Cabal
19b5aaab27 Update wanted ebooks list 2022-09-06 09:51:52 -05:00
Alex Cabal
e61d267e49 Update wanted ebooks list 2022-09-04 20:14:37 -05:00
Alex Cabal
1336420678 Add link to Decline and Fall 2022-09-04 19:44:32 -05:00
Alex Cabal
a574a78c37 Add item to Kindle FAQ 2022-09-03 18:33:40 -05:00
Alex Cabal
f9b1469c0f Update wanted ebooks list 2022-09-02 09:13:52 -05:00
Alex Cabal
77443a16df Update wanted ebooks list 2022-09-01 15:49:53 -05:00
Lukas Bystricky
94e475f809 Add works by John Ruskin 2022-09-01 15:12:07 -05:00
Alex Cabal
5f473f4bc2 Tweak newsletter subscriber count query in donations page 2022-09-01 13:35:52 -05:00
Alex Cabal
40c5fdb3e3 Update sponsor information 2022-09-01 11:08:18 -05:00
Alex Cabal
0907dacae1 Tweak anonymous patron count SQL 2022-09-01 10:19:37 -05:00
Alex Cabal
64a8ccb082 Tweak wrapping in manual CSS 2022-08-28 20:03:56 -05:00
Alex Cabal
7ccdcd020e Update wanted ebooks list 2022-08-28 16:18:54 -05:00
Alex Cabal
4eca5c71b2 Update wanted ebooks list 2022-08-25 15:54:50 -05:00
Alex Cabal
c5205ee87a Update wanted ebooks list 2022-08-24 10:11:26 -05:00
Anthony J. Bentley
eaec62f722 Update wanted ebooks list: Two Years Before the Mast 2022-08-24 09:44:54 -05:00
Anthony J. Bentley
f9665ee339 Use dashes, not hyphens 2022-08-23 09:39:42 -05:00
Alex Cabal
f53a9708a4 Update readme with correct URLs 2022-08-22 20:41:35 -05:00
Alex Cabal
7465145b33 Note patron anonymous status in notification email 2022-08-21 13:48:25 -05:00
Alex Cabal
a370651a62 Update wanted ebooks list 2022-08-20 13:48:46 -05:00
Alex Cabal
35565d90f6 Redirect ended polls to the results page 2022-08-20 13:18:42 -05:00