Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Images arent always displayed in the correct orientation when viewing an image

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
css, python
領域
backend, frontend

調査の方向性

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:

  1. 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/get endpoint is just returning a link to s3, so this might be a pretty complicated way to do it.
  2. alternatively, maybe we could implement the rotation using CSS classes and have the view_file.html template look at the metadata and decide which to use
主要言語
Python
スター
22
フォーク
30
平均マージ
2時間 26分
マージ済み PR(30日)
1

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

ComputerScienceHouse/gallery のほかの issue

ComputerScienceHouse/gallery の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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