Images arent always displayed in the correct orientation when viewing an image
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
view_file.html テンプレートと、gallery/init.py の 751 行目付近にある /api/files/get パスから始め、issue #45 で議論されているサムネイルの回転アプローチと比較してください。image-orientation をサポートしないブラウザーで画像の向きのメタデータをどのように処理できるかを判断してください。完了の条件は、縦向きに撮影された画像が対象ブラウザー全体で正しい向きに表示されることです。
索引モデルが issue の本文から書いたものです。
説明
When viewing images taken vertically (i.e. https://gallery.csh.rit.edu/view/file/36582), some browsers (i.e. new versions of firefox) correctly rotate the image based on its EXIF metadata, however, most browsers (i.e. chromium) still display it incorrectly.
in order to fix this for other browsers, there needs to be a fallback for when the image-orientation CSS property is not supported.
So far i've come up with:
- Since #45 seems to be rotating thumbnails server-side, maybe we could also rotate the images server-side before displaying them, however, it seems like the
/api/files/getendpoint is just returning a link to s3, so this might be a pretty complicated way to do it. - alternatively, maybe we could implement the rotation using CSS classes and have the
view_file.htmltemplate look at the metadata and decide which to use
- 主要言語
- Python
- スター
- 22
- フォーク
- 30
- 平均マージ
- 2時間 26分
- マージ済み PR(30日)
- 1
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ComputerScienceHouse/gallery のほかの issue
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 50/100
ComputerScienceHouse/gallery#138 ·
-
enhancement
ComputerScienceHouse/gallery#137 · 担当者 1 名 ·
-
enhancement good first issue
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
ComputerScienceHouse/gallery#126 ·
-
Allow faster editing オープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
ComputerScienceHouse/gallery#124 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
ComputerScienceHouse/gallery#117 · コメント 1 件 ·
ComputerScienceHouse/gallery の issue をすべて見る
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
canonical/paas-charm#368 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
tech debt
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
StevenBlack/hosts#3256 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
qualcomm/qai-appbuilder#275 ·