Commit Graph
58 Commits
Author SHA1 Message Date
Brent Simmons 03cc95e4e4 Make small thumbnails square. Crop from sides and bottom, never top, which makes it more likely that the relevant part of the image will be in the thumbnail. (Not using face detection though due to performance.) 2026-11-05 19:56:43 -08:00
Brent Simmons b24d552c81 Stop an image too large for the timeline from blocking it as an icon. Save new conditional GET info when a check finds the image unchanged. 2026-11-03 16:09:13 -08:00
Brent Simmons 5196592efe Keep only the scaled copy of icons on disk. 2026-11-03 14:39:45 -08:00
Brent Simmons 3bb2568bbb Stop emptying thumbnail URL caches on Mac when app goes to background. 2026-11-03 14:07:37 -08:00
Brent Simmons 9bc39f5172 Split ThumbnailDownloader out from ArticleThumbnailFinder. 2026-11-03 13:40:27 -08:00
Brent Simmons 9c3bb706ce Split HomePageIconDownloader from FeedIconDownloader. Save home page icon URLs by home page instead of by feed. 2026-11-03 11:30:26 -08:00
Brent Simmons 55f592b7eb Keep icons out of the images folder size limit. Remove icons unused for 180 days. 2026-11-02 15:23:50 -08:00
Brent Simmons 86ad692082 Remove a cleanup used only in development build. 2026-11-02 10:30:43 -08:00
Brent Simmons 3ec25f165e Get sizes from disk. 2026-11-02 10:25:00 -08:00
Brent Simmons feedf2913d Remove some unused code and database columns. 2026-11-02 10:21:38 -08:00
Brent Simmons 73f7b374ad Prefer images from HTML to provided thumbnails in large mode, since provided thumbnails are often too small for the large thumbnail space. 2026-11-01 21:43:38 -08:00
Brent Simmons 2915cb44e7 Parse HTML thumbnails off the main thread at fetch time. Remove batching. 2026-11-01 21:27:18 -08:00
Brent Simmons a204df0d22 Remove articleThumbnailURLs. Cache thumbnail URLs in memory. Parsing is super-fast. 2026-11-01 20:55:18 -08:00
Brent Simmons 24ab32aa80 Parse HTML thumbnails for first 1,000 articles before rows load, so we have thumbnail state for layout. 2026-11-01 20:45:26 -08:00
Brent Simmons 3515b4a445 Prune downloaded images cache only on launch. 2026-11-01 11:55:23 -08:00
Brent Simmons becbe58793 Simplify image retries. 2026-11-01 11:53:36 -08:00
Brent Simmons 4f6ff7d505 Make ThumbnailTaskQueue newest-first. Remove priorities, which are no needed. 2026-11-01 11:34:12 -08:00
Brent Simmons 4dbb2488e0 Skip deleting images when the image records can’t be read, so a failed database read doesn’t delete every image. 2026-10-31 14:33:49 -07:00
Brent Simmons 73ca3b4b44 Skip deleting images when images folder can’t have its files listed, so a failed listing doesn’t delete every record and file. 2026-10-31 14:32:20 -07:00
Brent Simmons 210474f6ac Parse, save, post HTML thumbnail URLs in batches of 100. 2026-10-31 11:56:03 -07:00
Brent Simmons f70d5e0e38 Preserver waits from a Retry-After after network status changes. 2026-10-31 11:48:41 -07:00
Brent Simmons 0313bd5b5d Limit thumbnail downloads to two per host, so a slow host can’t block everything else. 2026-10-31 11:47:00 -07:00
Brent Simmons 6f35025569 Remove code that has been replaced by findThumbnailURLs. 2026-10-31 11:08:47 -07:00
Brent Simmons 70b1eb70f0 Add findThumbnailURLs which loads thumbnail URLs and parses the reset. Simplifies things for callers. 2026-10-31 11:01:33 -07:00
Brent Simmons 880b3e213a Decode large thumbnails to displayed height, which makes them smaller, which means more can fit in the image cache. 2026-10-31 10:56:51 -07:00
Brent Simmons eb22462a06 Store articles image fields rather than entire articles in ArticleThumbnailFinder. 2026-10-31 10:38:20 -07:00
Brent Simmons c655a0d659 Check retry waits and network status when queued image download’s turn is up, so those requests don’t go to a host that just asked for a wait. 2026-10-31 10:32:29 -07:00
Brent Simmons 103cfd2a08 Double image retry wait after previous wait ends, so a bunch of failures in a row doesn’t double it to the max in a few seconds. 2026-10-31 10:24:51 -07:00
Brent Simmons 65962b8cf4 Move row to next thumbnail source when image URL returns something that isn’t an actual image. 2026-10-30 22:28:38 -07:00
Brent Simmons 6d6b3f3123 Test that the largest frame of an image file is decoded. 2026-10-30 22:09:53 -07:00
Brent Simmons 2c56df2373 Test that a failed provided image falls back to a thumbnail found in HTML. 2026-10-30 22:07:58 -07:00
Brent Simmons 521f00be18 Test that an image without validators waits longest between checks. 2026-10-30 22:05:49 -07:00
Brent Simmons 73983d1707 Add test for saving images and checking thumbnail suitability. 2026-10-30 22:04:00 -07:00
Brent Simmons 3a4bac109e Add test for counting HTTP status codes as transient. 2026-10-30 22:01:10 -07:00
Brent Simmons b6fde3038d Wait for tasks to be queued in ThumbnailTaskQueueTests instead of relying on Task.yield. 2026-10-30 21:55:10 -07:00
Brent Simmons 63b3078231 Figure out which images to remove in background. 2026-10-30 18:09:00 -07:00
Brent Simmons c9b4782433 Rename DownloadLimiter to ThumbnailTaskQueue now that it’s about more than just downloading. 2026-10-30 17:38:34 -07:00
Brent Simmons a99fd2e5df Add ArticleThumbnailFinder.loadSavedThumbnailURLs. 2026-10-30 17:16:21 -07:00
Brent Simmons 7125510fa0 Save chosen thumbnail URL for each article. 2026-10-30 12:00:32 -07:00
Brent Simmons 99b33647e7 Add support for scaled icons on disk. 2026-10-29 11:13:17 -07:00
Brent Simmons 264911cabb Add jitter to check interval so they don’t clump (and are therefore kinder to servers). 2026-10-29 09:34:38 -07:00
Brent Simmons 1feafcf4f1 Prevent images being read or being downloaded from being removed by a removal pass. 2026-10-29 08:51:29 -07:00
Brent Simmons 14f570bbf1 Start a waiting image download immediately when article view needs the image. 2026-10-28 11:13:02 -07:00
Brent Simmons 46f09a4861 Fix test. 2026-10-27 14:30:59 -07:00
Brent Simmons 381c5e4d97 Add test for importing old database to new Images.db. 2026-10-27 12:04:50 -07:00
Brent Simmons 42a21678d3 Rename ImagesMetadataDatabase class to ImageDatabase. 2026-10-27 11:54:14 -07:00
Brent Simmons 98b440b83a Save multiple thumbnail URLs per article in case one fails or is too small etc. 2026-10-27 11:18:29 -07:00
Brent Simmons 15110763e9 Download visible thumbnails ahead of next screen prefetches. 2026-10-27 10:59:09 -07:00
Brent Simmons 3db7db4f4a Keep a max (currently 60) number of downloads waiting so we’re not downloading for scrolled-past rows too much. 2026-10-27 10:36:45 -07:00
Brent Simmons b4de29a32d Check feed icons and author avatars with server periodically, in case they’ve changed. 2026-10-27 10:27:43 -07:00