Commit Graph
1196 Commits
Author SHA1 Message Date
Brent Simmons 7214b44dc3 Work around Apple crash in iOS 27.2 beta. Don’t use <= or >= with Dates. 2026-11-06 10:34:36 -08:00
Brent Simmons fcbc491180 Rename forNameCaseInsensitive to forCaseInsensitiveName. 2026-11-06 10:33:49 -08:00
Brent Simmons eac971b275 Create aspectFitRect (used in the app for small thumbnails, but possibly useful other places). 2026-11-05 20:33:47 -08:00
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 03d7367772 Rasterize SVG icons once in background on Mac, so views can draw bitmap (fast) instead of the vector. 2026-11-03 16:18:49 -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 d49c25abf9 Pass article base URL to image attribute inserter as URL, matching HTMLImageParser. 2026-11-03 16:04:05 -08:00
Brent Simmons 7b16af7698 Check image’s declared size before resolving its URLs. 2026-11-03 15:57:46 -08:00
Brent Simmons 98dccfe5dc Decode entities in title and textarea, so link from SVG title is correctly decoded. 2026-11-03 15:48:01 -08:00
Brent Simmons a1958416ba Rename iconImageCache to iconImages. 2026-11-03 15:40:05 -08:00
Brent Simmons 88ba9f9fe9 Make inits private. 2026-11-03 15:38:59 -08:00
Brent Simmons 90b72e281d Edit comment. 2026-11-03 15:38:20 -08:00
Brent Simmons 244d96fa03 Remove no-longer-used launch timings. 2026-11-03 15:31:10 -08:00
Brent Simmons ae87e309dd Add notAttempted error. 2026-11-03 15:29:35 -08:00
Brent Simmons 536c061f17 Start one metadata lookup per home page instead of per cell configure. 2026-11-03 14:57:19 -08:00
Brent Simmons 4a36fb0c56 Find the feeds using an arriving favicon or home page icon by lookup instead of scanning every feed. 2026-11-03 14:42:29 -08:00
Brent Simmons 5196592efe Keep only the scaled copy of icons on disk. 2026-11-03 14:39:45 -08:00
Brent Simmons feda636b0c Check for captive portal redirects on http only, so https sites that moved hosts get their metadata. 2026-11-03 14:19:26 -08:00
Brent Simmons 3fb7f9fe46 Fix decorative banner test for the current aspect-ratio limit. 2026-11-03 14:17:14 -08:00
Brent Simmons 69a5fb834a Scale image from the full image, not a JPEG embedded EXIF thumbnail. 2026-11-03 14:13:16 -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 dc27b508b3 Make IconImageCache the source of icon notifications. 2026-11-03 11:53:31 -08:00
Brent Simmons 966641c723 Remove SingleFaviconDownloader. 2026-11-03 11:36:06 -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 f4df806a66 Load icons via IconImageDownloader. It caches one IconImage per URL. 2026-11-03 11:10:10 -08:00
Brent Simmons f2ad6b6d57 Decode each feed icon URL once, even if shared by multiple feeds. (Multiple GitHub feeds, for instance.) 2026-11-03 10:32:54 -08:00
Brent Simmons 713a93715d Replace feed’s cached icon and favicon when icon, favicon, or home page URL changes. 2026-11-03 10:23:12 -08:00
Brent Simmons 1972d25f20 Retry favicons when the network comes back. 2026-11-03 10:21:42 -08:00
Brent Simmons e8c713308f Use home page favicon when feed-specified favicon fails or isn’t an image. 2026-11-03 10:16:32 -08:00
Brent Simmons 8050519b24 Expire no-favicon notes, and check home pages with no icon again when metadata refreshes. 2026-11-03 10:14:44 -08:00
Brent Simmons dc4804dd71 Use saved home page icon before checking home page when a feed specified icon fails. 2026-11-03 10:11:52 -08:00
Brent Simmons 6f6ea3c678 Check saved favicon against home page current favicons. 2026-11-03 10:04:15 -08:00
Brent Simmons 7f63c37033 Replace home page icon when home page includes a different one. 2026-11-03 10:00:40 -08:00
Brent Simmons 9b35e47f68 Request a feed icon when it isn’t in memory. 2026-11-03 09:50:36 -08:00
Brent Simmons 03aa00f151 Skip saving home page metadata from a redirect to another host, which may be a captive portal. 2026-11-03 09:48:17 -08:00
Brent Simmons 13a73b54d2 Parse home page metadata in the background. Stop at the body tag. 2026-11-02 16:59:22 -08:00
Brent Simmons f5d80a468c Skip replacing an icon when revalidation returns same bytes. 2026-11-02 16:19:06 -08:00
Brent Simmons 41f98fb2f9 Log failed writes of scaled icons. 2026-11-02 16:15:54 -08:00
Brent Simmons ec2b7b112c Remove a no-longer-accurate comment. 2026-11-02 16:15:38 -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 5ca0ad5b5d Make sure home page icon never replaces the feed-specified icon. 2026-11-02 15:12:02 -08:00
Brent Simmons 0f479a1753 Treat unsupported URL errors as final. 2026-11-02 13:17:25 -08:00
Brent Simmons 53f69a2d16 Search again when a saved favicon URL stops returning an image. 2026-11-02 13:15:26 -08:00
Brent Simmons be27f3e89c Consider a non-image response as transient (is probably a captive portal). 2026-11-02 12:52:31 -08:00
Brent Simmons c137f24fc1 Decode images and compute luminance on background. 2026-11-02 11:39:14 -08:00
Brent Simmons a418aca5a7 Find saved favicons by the same home page URL they’re saved under. 2026-11-02 11:34:54 -08:00
Brent Simmons 66c07ac1b7 Check home page again when saved home page icon fails. 2026-11-02 11:18:00 -08:00
Brent Simmons 9cdcdfe222 Replace home page icon with feed icon once it downloads. 2026-11-02 11:03:04 -08:00
Brent Simmons a1a93abacf Fall back to home page icon when feed icon fails to download. 2026-11-02 10:59:02 -08:00