ATProtoKit
ATProtoKit copied to clipboard
[Feature Request]: Complete `ATImageProcessable` Implementation
Summary
No response
Pain points
ATImageProcessable is a helper protocol framework that tries to get images down to below the maximum size that the AT Protocol requires. Since The AT Protocol is more than just Bluesky, a framework is needed to make it more generic. This should act as an extension to any image frameworks (examples: UIImage for iOS; NSImage for macOS).
Considered Alternatives
No response
Is this a breaking change?
No
Library Examples
No response
Additional Context
Current goals:
- [ ] Extend
UIImagewith convenience initializers that clone the applicable base initializers - [ ] Extend
NSImagewith convenience initializers that clone the applicable base initializers - [ ] Ensure the following methods have a default implementation:
- [ ]
convertToImageQuery(imagePath: String, altText: String?, targetFileSize: Int) -> ImageQuery? - [ ]
stripMetadata(from image: ATImage) -> ATImage?
- [ ]
- [ ] Support for JPEG images
- [ ] Support for PNG images
- [ ] Support for WEBP images