Commit Graph
11295 Commits
Author SHA1 Message Date
Brent Simmons 25e94de5c5 Test that relative image URL is skipped when baseURL is nil. 2026-10-30 21:56:30 -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 ff8c16536a Stop allocating an array. 2026-10-30 21:52:41 -07:00
Brent Simmons dcc94fa185 Check for data: URLs without copying the entire value (which could be huge). 2026-10-30 21:43:12 -07:00
Brent Simmons 6d5d3c27a1 Pass HTML and URL to HTMLImageParser. 2026-10-30 21:41:57 -07:00
Brent Simmons 6a21487b00 Use just one tag name comparison function. 2026-10-30 21:39:48 -07:00
Brent Simmons 1759eebd55 Remove now-unused three-day image cache flush. 2026-10-30 21:36:01 -07:00
Brent Simmons 8b6328deed Remove superfluous purgeImageCachesForResizingIfNeeded. 2026-10-30 21:34:01 -07:00
Brent Simmons 3b368771be Remove unused JPEG format support. 2026-10-30 21:31:55 -07:00
Brent Simmons 8239e7af20 Record decode failures but not download failures (since DownloadedImageCache does that). 2026-10-30 21:30:24 -07:00
Brent Simmons a7b3ffb815 Observe timelineThumbnailsDisplayDidChange notification. 2026-10-30 21:27:16 -07:00
Brent Simmons e3b5cd5d9e Use Use TimelineThumbnailsDisplay.thumbnailMode. 2026-10-30 21:25:04 -07:00
Brent Simmons e25987550a Rename isGravatarAvatar to isGravatar. 2026-10-30 21:20:46 -07:00
Brent Simmons 88104fb412 Pass parsed URL to isGravatarAvatar instead of URL string which then has to be parsed. 2026-10-30 18:19:06 -07:00
Brent Simmons 21543b9ee0 Filter provided thumbnail URLs only, since URLs found in HTML were previously filtered. 2026-10-30 18:15:27 -07:00
Brent Simmons 63b3078231 Figure out which images to remove in background. 2026-10-30 18:09:00 -07:00
Brent Simmons 187e01ef63 Use rawValue. 2026-10-30 18:06:26 -07:00
Brent Simmons 8119738499 Use UICollectionViewDataSourcePrefetching to prefetch iOS timeline thumbnails. 2026-10-30 18:05:16 -07:00
Brent Simmons 559ac33a17 Prefetch thumbnails in the scrolling direction in the timeline. 2026-10-30 17:55:13 -07:00
Brent Simmons 3da931b856 Find HTML images before updating rows when a timeline thumbnail fails. 2026-10-30 17:52:02 -07:00
Brent Simmons 262c8f16dc Decode thumbnail images a few at a time. 2026-10-30 17:46:21 -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 6e9996b182 Set the thumbnail on existing cell data. 2026-10-30 17:31:37 -07:00
Brent Simmons f19b70fda5 Update visible cells directly when a thumbnail arrives. 2026-10-30 17:26:17 -07:00
Brent Simmons 6489ad278d Reconfigure rather than reload cells in iOS timeline. 2026-10-30 17:24:34 -07:00
Brent Simmons d823ef56e9 Reload all rows in iOS timeline when thumbnail display changes. 2026-10-30 17:22:56 -07:00
Brent Simmons 3d6a4fc4d7 Load saved thumbnail URLs before applying changes to the timeline. 2026-10-30 17:19:29 -07:00
Brent Simmons b17bb24a67 Load saved thumbnail URLs before laying out rows for large icons. 2026-10-30 17:17:48 -07:00
Brent Simmons a99fd2e5df Add ArticleThumbnailFinder.loadSavedThumbnailURLs. 2026-10-30 17:16:21 -07:00
Brent Simmons 3d9fe5da3c Note row height changes only for rows that gained or lost a thumbnail. 2026-10-30 17:09:30 -07:00
Brent Simmons 6caac10700 Remove unused key from userInfo. 2026-10-30 17:06:57 -07:00
Brent Simmons 837406d14f Use ArticleThumbnailFinder chosen thumbnail URLs. 2026-10-30 17:05:19 -07:00
Brent Simmons 41c29a51a1 Use ArticleThumbnailFinder chosen thumbnail URLs. 2026-10-30 17:04:06 -07:00
Brent Simmons 7125510fa0 Save chosen thumbnail URL for each article. 2026-10-30 12:00:32 -07:00
Brent Simmons 60640b235e Use timeline copy in iOS image viewer only if correctly signed. 2026-10-29 12:30:00 -07:00
Brent Simmons 814e7d0d89 Sign locally-routed images so feed content and scripts can’t abuse the custom scheme handler. 2026-10-29 12:23:50 -07:00
Brent Simmons a645f256ff Delete database rows for HTML-found thumbnail URLs eventually. 2026-10-29 12:15:18 -07:00
Brent Simmons e9ec348172 Cap readDatesNoted at 10,000 URLs. 2026-10-29 11:53:18 -07:00
Brent Simmons 0901df57bb Delete old image cache folders in background. 2026-10-29 11:16:42 -07:00
Brent Simmons a9f94727b6 Save scaled icons on disk to they’re aren’t rescaled from original all the time. 2026-10-29 11:14:52 -07:00
Brent Simmons 99b33647e7 Add support for scaled icons on disk. 2026-10-29 11:13:17 -07:00
Brent Simmons 1179c33536 Use memory-mapped cached image files. 2026-10-29 11:05:56 -07:00
Brent Simmons 93eb48d44d Save memory by cutting the decoded thumbnail cache limit from 128MB to 64MB on iOS. 2026-10-29 11:04:04 -07:00
Brent Simmons f28d6041b9 Save memory by decoding small thumbnails at 256 instead of 512, which is big enough for the 76pt size at 3x. 2026-10-29 11:02:32 -07:00
Brent Simmons ef49feed8b Remove lock since writes are atomic. 2026-10-29 11:00:40 -07:00
Brent Simmons af2d55a194 Note when image was used so icons in use aren’t the first removed. 2026-10-29 10:58:43 -07:00
Brent Simmons 736ba28c8e Avoid saving or overwriting an image with something not an image (a captive portal login page, for instance). 2026-10-29 10:29:03 -07:00
Brent Simmons 377531b40c Reject images with tracking names. 2026-10-29 10:06:53 -07:00
Brent Simmons 308963bd66 Avoid prefetching timeline thumbnails on expensive networks or in Low Power Mode. 2026-10-29 09:58:21 -07:00
Brent Simmons a70f436842 Reject timeline images over a certain large size. 2026-10-29 09:49:39 -07:00