[Feature Request]: Complete `ATImageProcessable` Implementation

オープン
#14 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
swift
領域
mobile

調査の方向性

Start by locating the ATImageProcessable protocol and its image handling entry points; the issue names UIImage and NSImage as the intended extensions. Read the existing image query and metadata handling, then determine how the project represents JPEG, PNG, and WEBP images. Done means both platform image types have the requested initializers, the two methods have default implementations, and all three formats are supported.

索引モデルが issue の本文から書いたものです。

説明

good first issue new feature
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
主要言語
Swift
スター
226
フォーク
40
平均マージ
5時間 8分
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MasterJ93/ATProtoKit のほかの issue

MasterJ93/ATProtoKit の issue をすべて見る

似ている issue

Swift の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。