Commit Graph
1053 Commits
Author SHA1 Message Date
Brent Simmons 3ada527dda Replace cached feed icons and author avatars when server replaces the image. 2026-10-29 09:08:58 -07:00
Brent Simmons 93a011fb5c Make icon again when server replaces an image. 2026-10-29 09:05:42 -07:00
Brent Simmons fc2e1eb53d Post DownloadedImageDidChange notification when check with server results in a new image. 2026-10-29 08:59:45 -07:00
Brent Simmons 9964dab069 Avoid coalescing conditional GETs in Downloader. 2026-10-29 08:56:16 -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 e08a815626 Write atomically. 2026-10-29 08:47:36 -07:00
Brent Simmons c1b8c44c7e Use the largest srcset image over src (which is often a placeholder). 2026-10-29 08:43:10 -07:00
Brent Simmons b06fcfdc63 Get the largest frame. 2026-10-28 13:30:47 -07:00
Brent Simmons 7a561ac992 Make largestFrame public. 2026-10-28 13:30:03 -07:00
Brent Simmons c6cf4e704c Check if connectivity is good before downloading images. 2026-10-28 11:48:20 -07:00
Brent Simmons 535652ae3b Post NetworkMonitor notification when connectivity changes. 2026-10-28 11:43:20 -07:00
Brent Simmons dc2bb43fa7 Raise cached article limit in ArticleThumbnailFinder so the cache doesn’t get emptied on super-large timelines as often. 2026-10-28 11:35:01 -07:00
Brent Simmons 70cbd39834 Use the proper baseURL in the thumbnail finder. 2026-10-28 11:30:24 -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 b80abf5cc8 Create ArticleThumbnailFinder.fullSizeImageData so article view can share timeline’s copy of an image. 2026-10-27 14:02:03 -07:00
Brent Simmons f05a9f1109 Save downloaded images as-is so the article view can show original at full size. 2026-10-27 13:58:22 -07:00
Brent Simmons 92059c4c10 Create HTMLImageAttributeInserter which adds attributes to img tags so we can add a local src for an image where we have a local version. 2026-10-27 13:54:50 -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 d10ab12736 Copy data from ImageMetadata.db to Images.db, then delete ImageMetadata.db. 2026-10-27 11:59:23 -07:00
Brent Simmons 42a21678d3 Rename ImagesMetadataDatabase class to ImageDatabase. 2026-10-27 11:54:14 -07:00
Brent Simmons ea3080011e Support WAL mode. 2026-10-27 11:50:34 -07:00
Brent Simmons 69bebf67af Avoid recomputing thumbnail URL. 2026-10-27 11:24:58 -07:00
Brent Simmons 3aa2459de6 Skip articles with no HTML. 2026-10-27 11:21:38 -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 0663332828 Try each image in HTML until one is significant. 2026-10-27 11:14:13 -07:00
Brent Simmons 55bcbd4bab Cap cache size at 20,000. 2026-10-27 11:09:19 -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 beea83ce1b Use DownloadedImageCache with favicons. 2026-10-27 10:30:42 -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
Brent Simmons ebfa6ed0e4 Delete least recently used images on disk once a size cap is reached. 2026-10-27 10:09:36 -07:00
Brent Simmons fd191c154f Record image size, etag, etc. 2026-10-26 22:20:16 -07:00
Brent Simmons f7daad126b Decode thumbnails at display size from DownloadedImageCache. 2026-10-26 21:12:21 -07:00
Brent Simmons 6831d31fc9 Create DownloadedImageCache. 2026-10-26 21:05:41 -07:00
Brent Simmons 3e962e641f Record images with insignificant dimensions separately from download failures, so they don’t hide feed icons. 2026-10-26 19:57:25 -07:00
Brent Simmons fa4c03d94b Fix test. 2026-10-26 19:52:32 -07:00
Brent Simmons 41d9b754b3 Increase the aspect ratio limit some. 2026-10-26 19:31:52 -07:00
Brent Simmons f5f9043b05 Show thumbnails in timeline. 2026-10-25 14:55:23 -07:00
Brent Simmons 7c9b0cd1c8 Add regular and large thumbnail image downloaders. 2026-10-25 14:44:47 -07:00
Brent Simmons 2c8fb1a316 Add thumbnail downloading activity. 2026-10-25 14:38:04 -07:00
Brent Simmons 7aff08caac Update strings. 2026-10-25 14:37:39 -07:00
Brent Simmons a7c7754861 Support JPEG target type in RSImage. 2026-10-25 14:37:20 -07:00
Brent Simmons f2ac871b99 Create ArticleThumbnailFinder and ArticleThumbnailTable to find thumbnails. 2026-10-25 11:57:49 -07:00
Brent Simmons 098ee21d49 Add HTMLImageParserTests. 2026-10-25 11:45:36 -07:00
Brent Simmons 1f418a17c9 Add HTMLImageParser. 2026-10-25 11:44:45 -07:00
Brent Simmons 0a637e3fc3 Add HTMLImage type. 2026-10-25 11:23:34 -07:00
Brent Simmons 986a8fa04a Edit comment. 2026-10-25 11:23:22 -07:00
Brent Simmons 14d9898943 Add stopParsing function. 2026-10-25 11:21:34 -07:00
Brent Simmons 473a94bb06 Store and display attachments in feed order. 2026-10-24 11:58:06 -07:00