Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Complete ATImageProcessable Implementation #14

Open
8 tasks
MasterJ93 opened this issue May 13, 2024 · 0 comments
Open
8 tasks

[Feature Request]: Complete ATImageProcessable Implementation #14

MasterJ93 opened this issue May 13, 2024 · 0 comments
Labels
good first issue Good for newcomers new feature New feature or request

Comments

@MasterJ93
Copy link
Owner

MasterJ93 commented May 13, 2024

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 UIImage with convenience initializers that clone the applicable base initializers
  • Extend NSImage with 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
@MasterJ93 MasterJ93 added new feature New feature or request good first issue Good for newcomers labels May 13, 2024
@MasterJ93 MasterJ93 changed the title [Feature Request]: Complete ATImageProcessing Implementation [Feature Request]: Complete ATImageProcessable Implementation May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers new feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant