Commit Graph

36 Commits

Author SHA1 Message Date
Max Radermacher
8668d86a35
Consolidate CGDataProviderDirectCallbacks logic 2026-04-29 14:07:51 -05:00
Max Radermacher
a305029f9a
Add missing imports 2026-03-24 16:09:03 -05:00
Max Radermacher
c3d11ad3d1
Remove WebP special cases & stillForWebPData 2026-03-16 17:48:52 -05:00
Max Radermacher
c91813f117
Remove loadWebPMetadata; simplify isAnimated 2026-03-16 13:08:29 -05:00
Max Radermacher
523b2de637
Adjust enforced attachment size limits 2026-01-15 16:13:09 -06:00
Max Radermacher
64a0fa6804
Check WebP lengths before decoding 2026-01-13 13:52:14 -06:00
Max Radermacher
cc91966286
Clean up WebP parsing 2026-01-12 11:23:24 -06:00
Sasha Weiss
d267ec8305
Run swiftformat . 2025-12-30 11:34:05 -08:00
Max Radermacher
8c3fbbdca3
Hoist some attachment files into SignalUI 2025-12-11 13:35:08 -06:00
Max Radermacher
9efc1cea74
Throw errors in fileSize(of: …) 2025-11-13 18:07:34 -06:00
Max Radermacher
e87abb5c78
Rename size limit parameter to clarify behavior 2025-10-21 00:12:14 -05:00
Max Radermacher
2973f50609
Clean up “is animated png” check 2025-10-21 00:11:39 -05:00
Max Radermacher
972d95d9ef
Make DataImageSource’s readData method consistent 2025-10-21 00:11:02 -05:00
Max Radermacher
2c2c7e0251
Remove OWSImageSource.hasAlpha(…) 2025-10-21 00:10:29 -05:00
Max Radermacher
2bc550eddf
Add DataImageSource 2025-10-21 00:09:39 -05:00
Max Radermacher
f78c5d938b
Remove ows_hasValidGifSize 2025-10-20 20:14:18 -05:00
Max Radermacher
28e28a44cf
Remove unused mimeType code 2025-10-20 20:13:38 -05:00
Max Radermacher
7f360307ec
Represent invalid ImageMetadata as nil 2025-10-20 20:11:57 -05:00
Max Radermacher
9dc2b971be
Require ImageFormat.isValid(mimeType:)’s parameter 2025-10-20 13:28:23 -05:00
Max Radermacher
cdaee198bb
Simplify ImageFormat 2025-10-20 13:27:51 -05:00
Max Radermacher
e25cc30c5a
Move mimeType & fileExtension to ImageFormat 2025-10-20 13:27:20 -05:00
Max Radermacher
47e536babb
Represent ImageFormat.unknown as nil 2025-10-20 13:26:51 -05:00
Max Radermacher
266b2c6000
Convert ImageMetadata to a struct 2025-10-20 13:26:06 -05:00
Max Radermacher
1f7c55776d
Add & use AttachmentKey 2025-10-17 11:22:16 -05:00
Max Radermacher
b2b4cc52e2
Use non-UInt32 in attachment en-/decryption 2025-10-17 11:21:18 -05:00
Pete Walters
1761235f88
Migrate from YYImage to SDWebImage 2025-09-10 21:39:41 -05:00
Harry
da09995c1b
Do not treat 1x1 images as stickers 2025-04-15 16:13:55 -05:00
Ehren Kret
83b37e74a3 remove unused objc compat 2025-02-07 05:30:56 -06:00
Max Radermacher
f2eb7f5a22
Extract LinkPreviewFetcher into its own type 2024-07-26 21:45:22 -05:00
Harry
74437f2452
Avoid constantly recomputing ImageMetadata for hasStickerLikeProperties check 2024-07-25 17:21:14 -07:00
Harry
46dac08b46
Don't fail validation for gifs larger than the max static image size 2024-07-16 18:04:11 -07:00
Adam Sharp
34a8cf2bda
Rename owsAssert to owsPrecondition 2024-07-09 10:42:56 -04:00
Harry
bb083ca39c
Fold SignalCoreKit into SignalServiceKit
Co-authored-by: Adam Sharp <sharplet@signal.org>
2024-06-26 08:44:41 -07:00
Harry
c7e2ee8163
Fix typo in HEIC header validation 2024-06-10 17:14:32 -07:00
Harry
03be0659cd
Add file handle variants of OWSImageSource 2024-05-30 15:30:07 -07:00
Harry
e9038e0a38
Abstract ImageMetadata loading so it can use more than just in memory Data 2024-05-30 15:29:15 -07:00